From: Sarah Hoffmann Date: Sun, 6 Aug 2023 17:16:32 +0000 (+0200) Subject: nominatim: fix content type for options response X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/f4877e5e631c018fc4ffe3a5da831660c11f5d5f nominatim: fix content type for options response --- diff --git a/cookbooks/nominatim/templates/default/nginx.erb b/cookbooks/nominatim/templates/default/nginx.erb index 297e5d68e..def54f1ac 100644 --- a/cookbooks/nominatim/templates/default/nginx.erb +++ b/cookbooks/nominatim/templates/default/nginx.erb @@ -209,7 +209,7 @@ server { <% elsif node[:nominatim][:api_flavour] == "python" %> if ($request_method = 'OPTIONS') { - add_header 'Content-Type' 'text/plain charset=UTF-8'; + add_header 'Content-Type' 'text/plain; charset=UTF-8'; add_header 'Content-Length' 0; add_header Access-Control-Allow-Origin "*" always; add_header Access-Control-Allow-Methods 'GET,OPTIONS' always;