]> git.openstreetmap.org Git - rails.git/commitdiff
Return 404 for unknown API versions instead of 403.
authorTom Hughes <tom@compton.nu>
Mon, 20 Apr 2009 17:17:00 +0000 (17:17 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 20 Apr 2009 17:17:00 +0000 (17:17 +0000)
config/nginx.conf

index bd43f4c35bad85dfc5649b6c02a10962c2958234..366c1e1b29319ce3620e25fa0f353459e9a08ff7 100644 (file)
@@ -188,7 +188,7 @@ http {
 
         # Deny old and unknown API versions
         location ~ ^/api/0\.[0-9]+/ {
-            deny all;
+            return 404;
         }
             
         # Handle Special Case Expiry