[openstreetmap/openstreetmap-website] Compress plain GPX uploads with gzip (PR #7124)
Ruben L. Mendoza
notifications at github.com
Fri Jun 12 17:13:45 UTC 2026
@Rub21 commented on this pull request.
> + if accepts_gzip
+ response.headers["Content-Encoding"] = "gzip"
+ response.headers["Vary"] = [response.headers["Vary"], "Accept-Encoding"].compact.join(", ")
+ send_data(trace.file.download, :filename => filename, :type => "application/gpx+xml", :disposition => "attachment")
+ else
+ send_data(trace.xml_file.read, :filename => filename, :type => "application/gpx+xml", :disposition => "attachment")
Thanks for the suggestion, I applied it, it is already in the latest push
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/7124#discussion_r3405041424
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/7124/review/4487720857 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260612/6e7f9dd6/attachment.htm>
More information about the rails-dev
mailing list