patchlwIP - A Lightweight TCP/IP stack - Patches: patch #10047, Fix case-sensitive comparison of...


You are not allowed to post comments on this tracker with your current authentication level.

patch #10047: Fix case-sensitive comparison of Content-Length header for POST requests

Submitter:  Szabolcs Szekelyi <szekelyisz>
Submitted:  Tue 23 Mar 2021 07:32:48 PM UTC
Category:  apps Priority:  5 - Normal
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open
Planned Release:  None

Tue 23 Mar 2021 07:32:48 PM UTC, original submission:  

HTTP header names must be matched in a case-insensitive way as per RFC2616.
This bug caused all POST requests whose headers that don't use the conventional
Pascal+kebab case to fail. The popular axios libary uses lowercase header names
for example.

A new function `lwip_strncasestr` was implemented in src/core/def.c that's a
case-insensitive variant of `lwip_strnstr`.

Szabolcs Szekelyi <szekelyisz>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by szekelyisz (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.




    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-03-23 szekelyisz Attached File- Added bugfix-httpd-header-case.patch, #51123

    Back to the top

    Powered by Savane 3.9