]> git.openstreetmap.org Git - chef.git/commitdiff
nominatim: fix content type for options response
authorSarah Hoffmann <lonvia@denofr.de>
Sun, 6 Aug 2023 17:16:32 +0000 (19:16 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Sun, 6 Aug 2023 17:16:32 +0000 (19:16 +0200)
cookbooks/nominatim/templates/default/nginx.erb

index 297e5d68e0e9c4f2d76c8ad2c8473e00cad9a546..def54f1ace9a6414dff411bdaee36dba1e61abb7 100644 (file)
@@ -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;