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
I think you have the Context just after the POST is submitted but it is not submitted if the size is bigger than the limit. Your approach works to decrease the size but not to increase it apparently. I guess the Context is callable inside the request only.
In the http module usually you can do:
req.Body = http.MaxBytesReader(rw, req.Body, 5 << 20)
and have a byte limit on POST request as big as you want. In gin there is no Body so it is very hard to change these settings.
Is there a workaround? Can you implement a POST max size limit configuration?
The text was updated successfully, but these errors were encountered: