Skip to content

Commit e6ce937

Browse files
committed
Changing error messages
1 parent 57a7d11 commit e6ce937

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/ngx_http_auth_jwt_module.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ static ngx_int_t ngx_http_auth_jwt_handler(ngx_http_request_t *r)
117117
n = ngx_http_parse_multi_header_lines(&r->headers_in.cookies, &passportKeyCookieName, &jwtCookieVal);
118118
if (n == NGX_DECLINED)
119119
{
120-
ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, "failed to obtain a jwt cookie");
120+
ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, "failed to find a jwt");
121121
goto redirect;
122122
}
123123
}
@@ -235,10 +235,7 @@ static ngx_int_t ngx_http_auth_jwt_handler(ngx_http_request_t *r)
235235
return_url_idx += uri_escaped.len;
236236
r->headers_out.___location->value.data = (u_char *)return_url;
237237

238-
ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, "redirect for get request");
239-
240-
ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, "uri: %s", uri.data);
241-
ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, "uri_escaped: %s", uri_escaped.data);
238+
ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, "return_url: %s", return_url);
242239
}
243240
else
244241
{

0 commit comments

Comments
 (0)