Skip to content

add more media type tests and urlencoded with partially constant body#327

Merged
iscai-msft merged 6 commits intomainfrom
binary_body_with_content_types
Nov 3, 2021
Merged

add more media type tests and urlencoded with partially constant body#327
iscai-msft merged 6 commits intomainfrom
binary_body_with_content_types

Conversation

@iscai-msft
Copy link
Contributor

No description provided.

app.post("/mediatypes/binaryBodyTwoContentTypes", "MediaTypesTwoContentTypes", (req) => {
const contentType = req.headers["content-type"];
if (contentType === "application/json") {
req.expect.bodyNotEmpty();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we check it looks like a JSON at least? To be sure you didn't send bytes by mistake?

@iscai-msft iscai-msft merged commit 18db38c into main Nov 3, 2021
@iscai-msft iscai-msft deleted the binary_body_with_content_types branch November 3, 2021 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants