Skip to content

Commit

Permalink
Close #265: Make search for fields in HTTP header case-insensitive (#266
Browse files Browse the repository at this point in the history
)
  • Loading branch information
TheSomeMan authored Sep 17, 2023
1 parent 3d6488c commit a2ff18f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/http_req.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ http_req_header_get_field(const http_req_header_t req_header, const char* const
{
*p_len = 0;

const char* p_start = strstr(req_header.ptr, p_field_name);
const char* p_start = strcasestr(req_header.ptr, p_field_name);
if (NULL == p_start)
{
return NULL;
Expand Down

0 comments on commit a2ff18f

Please sign in to comment.