Skip to content

Adds Content-Length header to HTTP snippets#265

Merged
webholik merged 3 commits intopostmanlabs:developfrom
someshkoli:fix/HTTPcontentlength
Oct 5, 2020
Merged

Adds Content-Length header to HTTP snippets#265
webholik merged 3 commits intopostmanlabs:developfrom
someshkoli:fix/HTTPcontentlength

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