2 years ago
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
2 years ago
641dd1fe-cd0d-4acf-9826-29f2a3bd8c2d
2 years ago
not even forcing the header in the request seems to make it work

2 years ago
or maybe there's another check in Fiber on how it decides that it supports encoding
2 years ago
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?
2 years ago
im using this command, if it prints random stuff then its gzipcurl -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.

2 years ago
its working now?!?

2 years ago
ok whatever, I wont touch it
2 years ago
sweet