[openstreetmap/openstreetmap-website] Compress plain GPX uploads with gzip (PR #7124)
Pablo Brasero
notifications at github.com
Wed Jul 8 14:38:39 UTC 2026
pablobm left a comment (openstreetmap/openstreetmap-website#7124)
I think something is wrong. Scenario:
1. PR merged&deployed. Still on S3 adapter.
2. Trace uploaded with `server_gzipped: true`. File stored gzipped, but NO `Content-Encoding: gzip`
3. Download: `gzipped_by_server? => true`, `store_serves_gzip? => false`, therefore we decompress and `send_data`
4. Change to `GpxS3` adapter.
5. Download: `gzipped_by_server? => true`, `store_serves_gzip? => true`, therefore redirected to path, but there's NO `Content-Encoding: gzip`! The user gets a gzip file marked as gpx, so gibberish to them 😞
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/7124#issuecomment-4915946370
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/7124/c4915946370 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260708/7b5d1160/attachment-0001.htm>
More information about the rails-dev
mailing list