Do not send content-length
header when methodRewriting
is false
#1406
Labels
Milestone
content-length
header when methodRewriting
is false
#1406
Describe the bug
Actual behavior
Empty body request with header[content-length > 0] was sent when got a 302(Found) response status code after submitting POST request.
Expected behavior
Send empty body request without header[content-length] when got a 302(Found) response status code after submitting POST request.
Additional Info
Content-Length
(if required and present) must be the size of the body of the request.Which was mentioned by @Giotino in #1258 (comment)_
Code to reproduce
Temporary solution
Adding a hooks.beforeRedirect to delete the
Content-Length
header.Checklist
The text was updated successfully, but these errors were encountered: