lib/nitcorn: return a 404 on a request matching not routes or virtual host
[nit.git] / tests / sav / test_nitcorn.res
index 4d2fb2c..49b4b8c 100644 (file)
@@ -42,7 +42,7 @@ Method: GET, URI: /params_answer/0123/asdf/trailing/path, trailing: /trailing/pa
 Params args: i:0123, s:asdf
 
 [Client] curl -s localhost:*****/params_answer/0123 --head
-HTTP/1.0 405 Method Not Allowed\r
+HTTP/1.0 404 Not Found\r
 Content-Length: 0\r
 Server: nitcorn\r
 Set-Cookie: nitcorn_session=; HttpOnly; expires=Thu, 01 Jan 1970 00:00:00 GMT\r
@@ -118,7 +118,7 @@ Set-Cookie: nitcorn_session=; HttpOnly; expires=Thu, 01 Jan 1970 00:00:00 GMT
 \r
 
 [Client] curl -s localhost:*****/invalid_route --head
-HTTP/1.0 405 Method Not Allowed\r
+HTTP/1.0 404 Not Found\r
 Content-Length: 0\r
 Server: nitcorn\r
 Set-Cookie: nitcorn_session=; HttpOnly; expires=Thu, 01 Jan 1970 00:00:00 GMT\r