You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Used a dummy server to simulate a server handling the proxied requests. I have attached the python code to create this dummy server. I am using Python 3.12.2, the script uses the built-in http server library. The script just handles post requests and reads the file from the form data (called filename)
The server is run on port 9080.
Checks
http-proxy-middleware
.Describe the bug (be clear and concise)
Setting followRedirects option to true limits the form body size to 10 MB.
If you try to send a file through the form body that exceeds ~10 MB an error will be emitted.
Attaching the step-by-step reproduction instructions below.
Step-by-step reproduction instructions
The server is run on port 9080.
curl -X POST -F "filename=@large_file.tar" http://127.0.0.1:8080/proxy/api
Expected behavior (be clear and concise)
The expected behavior is for the request to go through or have the max body length configurable when followRedirects is true.
How is http-proxy-middleware used in your project?
What http-proxy-middleware configuration are you using?
What OS/version and node/version are you seeing the problem?
Additional context (optional)
No response
The text was updated successfully, but these errors were encountered: