We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1571c7 commit 0064b97Copy full SHA for 0064b97
bearer.lua
@@ -20,7 +20,7 @@ end
20
if token == nil then
21
ngx.status = ngx.HTTP_UNAUTHORIZED
22
ngx.header.content_type = "application/json; charset=utf-8"
23
- ngx.say("{error: \"missing JWT token or Authorization header\"}")
+ ngx.say("{\"error\": \"missing JWT token or Authorization header\"}")
24
ngx.exit(ngx.HTTP_UNAUTHORIZED)
25
end
26
@@ -42,7 +42,7 @@ if not jwt_obj["verified"] then
42
43
ngx.log(ngx.WARN, jwt_obj.reason)
44
45
- ngx.say("{error: \"" .. jwt_obj.reason .. "\"}")
+ ngx.say("{\"error\": \"" .. jwt_obj.reason .. "\"}")
46
47
48
0 commit comments