compression is not working?

I'm building a Go application with Fiber's compress middleware but for some reason the response is not compressed. I'm sending the accept-encoding headers accordingly but still I get no gzip or brotli response. This works locally and also on another cloud provider.

10 Replies

641dd1fe-cd0d-4acf-9826-29f2a3bd8c2d


not even forcing the header in the request seems to make it work

1272012020463440000


or maybe there's another check in Fiber on how it decides that it supports encoding


I thought that Railway wasn't forwarding the accept-encoding header but it is present, weird, maybe Railway's proxy is decoding it and sending raw?


im using this command, if it prints random stuff then its gzip
curl -H "Accept-Encoding: gzip" --compressed --raw "" --output -


2 years ago

interesting, someone else reported this too - https://discord.com/channels/713503345364697088/1271964673721237574

I will look into this Monday, if I don't, yell at me more


2 years ago

i am unable to reproduce with caddy -

If you are still seeing this issue, please provide a MRE.

1272692549240230000


its working now?!?

1272961845979906000


ok whatever, I wont touch it


2 years ago

sweet


Loading...