Skip to content

Adds Content-Length header to HTTP snippets #265

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 5, 2020

Conversation

someshkoli
Copy link
Contributor

@someshkoli someshkoli commented May 29, 2020

Fixes: #244 for content length
fixes: postmanlabs/postman-app-support#8531 for concatenation problem (refer changes:3)
HTTP requests require Content-Length header if body exists.
This PR adds Content-length header if body has nonzero length.

Changes:

  • calculates Content length for all type of body
  • appends adds content length header if body has nonzero length
  • adds newline character before form data header for proper formatting
  • modifies expected-http-message json and adds content length header where required
  • modifies name for unit test for content-length header

someshkoli and others added 3 commits May 29, 2020 06:09
 - Adds Content-Length header to HTTP snippets when body type is raw and length is nonzero
 - Modifies expected response and adds Content-Length header where required
 - adds test to check Content-length header for above case
 - removes check for only raw body requests
 - calculates Content length for all type of body
 - appends adds content length header if body has nonzero length
 - adds newline character before form data header for proper formatting
 - modifies expected-http-message json and adds content length header where required
 - modifies name for unit test for content-length header
@webholik webholik merged commit cf4acef into postmanlabs:develop Oct 5, 2020
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.

HTTP Code for multipart/form-data Line ending support and content length addition
2 participants