-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Why Remove Content-Length in Gateway MVC? #3308
Comments
The jdk http client will fail with an error if not removed. |
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue. |
What error will occur, maybe I can invstigate a bit if I know the error? I think it is a big problem if (in case of mvc) the ´Content-Length |
Describe the bug
I communicate with downstream server , At beginning I send request with okhttp manutally and everything is ok , when i integrate spring gateway mvc,i got 500 error like form encode escape % etc. after i dive into deep code , i found an odd Request Filter RemoveContentLengthRequestHeadersFilter
why we need remove content-lengh ,i can't understand the meaning of the comment on top.
// jdk http clients seem to not like having this copied from the initial request. // urlconnection fails with form url encoded
The text was updated successfully, but these errors were encountered: