Skip to content

Commit 27f7527

Browse files
committed
More debugging
1 parent e6ce937 commit 27f7527

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/ngx_http_auth_jwt_module.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ static ngx_int_t ngx_http_auth_jwt_handler(ngx_http_request_t *r)
183183
int loginlen;
184184
char * scheme;
185185
ngx_str_t server;
186-
ngx_str_t uri_variable_name = ngx_string("request_uri");;
186+
ngx_str_t uri_variable_name = ngx_string("request_uri");
187187
ngx_int_t uri_variable_hash;
188188
ngx_http_variable_value_t * request_uri_var;
189189
ngx_str_t uri;
@@ -206,11 +206,15 @@ static ngx_int_t ngx_http_auth_jwt_handler(ngx_http_request_t *r)
206206
uri.data = ngx_palloc(r->pool, request_uri_var->len);
207207
uri.len = request_uri_var->len;
208208
ngx_memcpy(uri.data, request_uri_var->data, request_uri_var->len);
209+
210+
ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, "found uri with querystring");
209211
}
210212
else
211213
{
212214
// fallback to the querystring without params
213215
uri = r->uri;
216+
217+
ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, "fallback to querystring without params");
214218
}
215219

216220
// escape the URI

0 commit comments

Comments
 (0)