We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5dc7042 commit 4fa98a9Copy full SHA for 4fa98a9
www/lua/10-1.lua
@@ -7,7 +7,7 @@ local method = ngx.req.get_method()
7
if method ~= "GET" and
8
method ~= "HEAD" then
9
10
- return 405
+ ngx.exit(405)
11
end
12
13
ngx.header.content_length = #str
0 commit comments