@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/[email protected]>
_______________________________________________
rails-dev mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to