This repository was archived by the owner on Aug 1, 2023. It is now read-only.
Commit ac43adf Christopher Schinnerl
authored
File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ rewrite_by_lua_block {
18
18
ngx.status = (hnsres_err and ngx.HTTP_INTERNAL_SERVER_ERROR) or hnsres_res.status
19
19
-- do not send response on unauthorized error (status code 401)
20
20
-- otherwise we will not be able to display custom error page
21
- if ngx.status ! = ngx.HTTP_UNAUTHORIZED then
21
+ if ngx.status ~ = ngx.HTTP_UNAUTHORIZED then
22
22
ngx.header["content-type"] = "text/plain"
23
23
ngx.say(hnsres_err or hnsres_res.body)
24
24
end
@@ -55,7 +55,7 @@ rewrite_by_lua_block {
55
55
ngx.status = (registry_err and ngx.HTTP_INTERNAL_SERVER_ERROR) or registry_res.status
56
56
-- do not send response on unauthorized error (status code 401)
57
57
-- otherwise we will not be able to display custom error page
58
- if ngx.status ! = ngx.HTTP_UNAUTHORIZED then
58
+ if ngx.status ~ = ngx.HTTP_UNAUTHORIZED then
59
59
ngx.header["content-type"] = "text/plain"
60
60
ngx.say(registry_err or registry_res.body)
61
61
end
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ location / {
26
26
ngx.status = (err and ngx.HTTP_INTERNAL_SERVER_ERROR) or res.status
27
27
-- do not send response on unauthorized error (status code 401)
28
28
-- otherwise we will not be able to display custom error page
29
- if ngx.status ! = ngx.HTTP_UNAUTHORIZED then
29
+ if ngx.status ~ = ngx.HTTP_UNAUTHORIZED then
30
30
ngx.header["content-type"] = "text/plain"
31
31
ngx.say(err or res.body)
32
32
end
You can’t perform that action at this time.
0 commit comments