]> git.openstreetmap.org Git - nominatim-ui.git/commitdiff
test suite: http-proxy target was not set correctly
authormarc tobias <mtmail@gmx.net>
Tue, 29 Aug 2023 21:34:33 +0000 (23:34 +0200)
committermtmail <mtmail@gmx.net>
Tue, 29 Aug 2023 21:44:23 +0000 (23:44 +0200)
test/_bootstrap.js

index f44e2172413fc2fee799a265af4526f8457eeca2..103784e909f0bc9247499b7de6926f05660a7bb0 100644 (file)
@@ -49,7 +49,7 @@ Nominatim_Config.Reverse_Only = ${reverse_only};
       let api_url_match = req.url.match(/\/(\w+\.php)/);
 
       let target = api_url_match
-        ? 'http://nominatim.openstreetmap.org/' + api_url_match[1]
+        ? 'https://nominatim.openstreetmap.org'
         : 'http://localhost:' + static_port;
 
       // console.log(`http proxy ${req.url} => ${target + req.url}`)