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
Upon server receiving POST request with content-encoding: gzip set the gzip middleware doesn't decompress the data.
This causes strange errors when trying to Bind() data (for example form/multipart): multipart: NextPart: EOF.
When decompressing the ctx.Request().Body manually inside the handler everything works as expected.
Expected behaviour
GzipMiddleware should? (probably) handle compression and decompression transparently, or it should be stated in the Bind examples it does NOT.
Actual behaviour
GzipMiddleware only compresses outgoing responses.
Steps to reproduce
Send any POST that contains form/multipart and is gzipped.
Version/commit
current master
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Issue Description
Upon server receiving POST request with content-encoding: gzip set the gzip middleware doesn't decompress the data.
This causes strange errors when trying to Bind() data (for example form/multipart):
multipart: NextPart: EOF
.When decompressing the ctx.Request().Body manually inside the handler everything works as expected.
Expected behaviour
GzipMiddleware should? (probably) handle compression and decompression transparently, or it should be stated in the Bind examples it does NOT.
Actual behaviour
GzipMiddleware only compresses outgoing responses.
Steps to reproduce
Send any POST that contains form/multipart and is gzipped.
Version/commit
current master
The text was updated successfully, but these errors were encountered: