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:  Done Privacy:  Public
Assigned to:  goldsimon Open/Closed:  Closed
Planned Release:  2.2.1

Thu 28 Sep 2023 08:33:09 PM UTC, comment #1: 

Fixed, thanks for reporting!

Simon Goldschmidt <goldsimon>
Group administrator
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 goldsimon (Posted a comment)
  • -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.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-09-28 goldsimon StatusNone Done
        Assigned toNone goldsimon
        Open/ClosedOpen Closed
        Planned ReleaseNone 2.2.1
    2021-03-23 szekelyisz Attached File- Added bugfix-httpd-header-case.patch, #51123

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code