Using GZIP with gin DataFromReader is not behaving correctly
uppalabharath opened this issue · 4 comments
uppalabharath commented
I have a requirement where upon clicking a link the file gets downloaded. As the file may be large I use gin's DataFromReader so that the download can happen in chunks. But when the gzip compression is enabled, the file is getting corrupted and chrome shows some error like network error. I disabled the gzip middleware and it worked normally.
Any pointers on where to look or some configuration needs to be done for handling this correctly. Please advise.
uppalabharath commented
appleboy commented
@uppalabharath I will take it.
appleboy commented
bump to v0.0.3 https://github.com/gin-contrib/gzip/releases/tag/v0.0.3
uppalabharath commented
Thanks @appleboy for quick action on this and thanks @segevfiner for the fix..