Skip to content

Commit 9927fb9

Browse files
committed
Corrected comments
1 parent 358c168 commit 9927fb9

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

src/ngx_http_auth_jwt_module.c

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -392,15 +392,11 @@ static ngx_table_elt_t* search_headers_in(ngx_http_request_t *r, u_char *name, s
392392
ngx_table_elt_t *h;
393393
ngx_uint_t i;
394394

395-
/*
396-
Get the first part of the list. There is usual only one part.
397-
*/
395+
// Get the first part of the list. There is usual only one part.
398396
part = &r->headers_in.headers.part;
399397
h = part->elts;
400398

401-
/* Headers list array may consist of more than one part,
402-
* so loop through all of it
403-
*/
399+
// Headers list array may consist of more than one part, so loop through all of it
404400
for (i = 0; /* void */ ; i++)
405401
{
406402
if (i >= part->nelts)
@@ -416,19 +412,17 @@ static ngx_table_elt_t* search_headers_in(ngx_http_request_t *r, u_char *name, s
416412
i = 0;
417413
}
418414

419-
/*
420-
* Just compare the lengths and then the names case insensitively.
421-
*/
415+
//Just compare the lengths and then the names case insensitively.
422416
if (len != h[i].key.len || ngx_strcasecmp(name, h[i].key.data) != 0)
423417
{
424418
/* This header doesn't match. */
425419
continue;
426420
}
427421

428422
/*
429-
* a-da, we got one!
430-
* Note, we'v stop the search at the first matched header
431-
* while more then one header may fit.
423+
* Ta-da, we got one!
424+
* Note, we've stopped the search at the first matched header
425+
* while more then one header may match.
432426
*/
433427
return &h[i];
434428
}

0 commit comments

Comments
 (0)