From 310cf26770cf1af9923097546cbe885bec8fe6b9 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 18 Nov 2025 15:30:30 +0000 Subject: [PATCH] Normalise Accept-Encoding headers to workaround cgimap bug https://github.com/zerebubuth/openstreetmap-cgimap/issues/540 --- cookbooks/web/templates/default/apache.frontend.erb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cookbooks/web/templates/default/apache.frontend.erb b/cookbooks/web/templates/default/apache.frontend.erb index 85e571947..76c4fb36d 100644 --- a/cookbooks/web/templates/default/apache.frontend.erb +++ b/cookbooks/web/templates/default/apache.frontend.erb @@ -192,6 +192,11 @@ ErrorLog /var/log/apache2/error.log # + # Normalise Accept-Encoding headers to workaround cgimap bug + # + RequestHeader edit* Accept-Encoding "\s*,\s*" ", " + + # # Pass supported calls to cgimap # RewriteRule ^/api/0\.6/map(\.json|\.xml)?$ unix:/run/cgimap/socket|fcgi://127.0.0.1$0 [P] -- 2.39.5