[openstreetmap/openstreetmap-website] Compress plain GPX uploads with gzip (PR #7124)
Ruben L. Mendoza
notifications at github.com
Fri Jul 17 22:24:24 UTC 2026
@Rub21 commented on this pull request.
> @@ -166,7 +195,8 @@ def update_from_xml_node(pt, create: false)
end
def xml_file
- gzipped = file.content_type.end_with?("gzip")
+ # Gzipped if the user sent a .gz or the server gzipped it.
+ gzipped = file.content_type.end_with?("gzip") || file.custom_metadata["server_gzipped"]
Done, it's a model method now and both places use it.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/7124#discussion_r3606547792
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/7124/review/4726526954 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260717/67cc25d6/attachment.htm>
More information about the rails-dev
mailing list