-
Notifications
You must be signed in to change notification settings - Fork 67
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
SetBuffer OnRequestBody return 400 Bad Request occasionally #127
Comments
@PiotrSikora @mathetake This problem confused me, please check this when u are free. |
@Xunzhuo you're replacing request body, possibly mutliple times ( If you want to replace complete body, you need to remove |
@PiotrSikora Thanks, problems have been solved by your guide😊 |
How do u change the Content-Length header in onRequestBody(), according to WASM doc, it can't modify HTTP header in onRequestBody(). |
When I try to change request body, I got 400 response occasionally. Sometimes envoy respond in expectation and sometimes respond in 400 Bad request
I use
curl -d "Hello,World" localhost:18000/
to send requestEnvoy log is below:
wasm c++ code:
envoy config is:
upstream is coded by Golang http package:
Expected response from upstream is:
Sometimes it return:
The text was updated successfully, but these errors were encountered: