Observed inconsistency in HTTP headers (headers_in.user)
anthonyryan1 at gmail.com
Sun May 22 00:27:29 MSD 2011
I recently began development of a HTTP Auth module to make use of an
existing user authentication backend my company uses, and encountered
something I believe to be a bug in Nginx.
Observation was that given ngx_http_request_t *r and an auth of
"username" & "password" (respectively).
r->headers_in.user.data was equal to "username:password"
r->headers_in.user.len was equal to 8 for username
I believe that this is a bug and that user.data was intended to be
truncated to the "username" alone.
The tested version is 1.0.0
The development environment was Ubuntu 11.04
Configured from source with the following options
If I did not provide enough relevant information or I am in some way
mistaken of the nature of this my apologies, this is only my second
day working in C.
More information about the nginx-devel