Skip to content

Commit 1d9f8eb

Browse files
committed
debugging
debugging
1 parent 27f7527 commit 1d9f8eb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/ngx_http_auth_jwt_module.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,12 @@ static ngx_int_t ngx_http_auth_jwt_handler(ngx_http_request_t *r)
207207
uri.len = request_uri_var->len;
208208
ngx_memcpy(uri.data, request_uri_var->data, request_uri_var->len);
209209

210-
ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, "found uri with querystring");
210+
211+
char * tmp = ngx_alloc(uri.len + 1, r->connection->log);
212+
ngx_memcpy(tmp, uri.data, uri.len);
213+
*(tmp+uri.len) = '\0';
214+
215+
ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, "found uri with querystring %s", tmp);
211216
}
212217
else
213218
{

0 commit comments

Comments
 (0)