-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Labels
bugUnexpected or incorrect behaviorUnexpected or incorrect behaviorhelp wantedIssues we need help with tacklingIssues we need help with tackling
Description
We are using Feign 10.7.4 to execute a POST request with an empty body. In this case Feign does not add a Content-Length header to the request. According to the HTTP specification this is fine but some proxies, in our case Azure API Management, do not accept POST request with no Content-Length header. Would it be possible to add a Content-Length: 0 header to PATCH, POST and PUT requests with an empty body?
Further context:
- https://stackoverflow.com/a/4198969
- POST requests with empty body should default Content-Length to 0 request/request#89
- Content-length header not set on PUT/POST with empty body urllib3/urllib3#555
- HTTP: Set HTTP header content-length:0 for POST,PUT,PATCH methods when no body is send and method is passed as String gatling/gatling#3648
kristofpeto-tesco, OlegTagayIDT, michal-kaciuba, just7mile, albertocavalcante and 3 more
Metadata
Metadata
Assignees
Labels
bugUnexpected or incorrect behaviorUnexpected or incorrect behaviorhelp wantedIssues we need help with tacklingIssues we need help with tackling