From f4877e5e631c018fc4ffe3a5da831660c11f5d5f Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Sun, 6 Aug 2023 19:16:32 +0200 Subject: [PATCH] nominatim: fix content type for options response --- cookbooks/nominatim/templates/default/nginx.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.45.2