Skip to content

Commit

Permalink
Minor improvement from review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
gary.archer committed Nov 18, 2024
1 parent 2add46b commit 5441c68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phantom_token.c
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ static ngx_int_t introspection_response_handler(ngx_http_request_t *request, voi
// This sets request->header_end and points request->upstream->buffer.pos past headers to the body content.
// - https://github.com/nginx/nginx/blob/master/src/http/modules/ngx_http_proxy_module.c#L1905
// - https://github.com/nginx/nginx/blob/master/src/http/ngx_http_parse.c#L816
jwt_start = request->header_end + sizeof("\r\n") - 1;
jwt_start = request->upstream->buffer.pos;

// With default configuration, the total buffer memory size is 4KB and the response header size might be 332 bytes.
// The ngx_buf_size macro returns the body size only: the size of the JWT or a partial size of the JWT, like 3764 bytes.
Expand Down

0 comments on commit 5441c68

Please sign in to comment.