buglwIP - A Lightweight TCP/IP stack - Bugs: bug #45735, httpd_raw does not detect...

 
 

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

bug #45735: httpd_raw does not detect Content-Length header correctly

Submitter:  Michael Heimpold <mhei>
Submitted:  Tue 11 Aug 2015 08:02:05 PM UTC
   
 
Category:  Contrib Severity:  3 - Normal
Item Group:  Faulty Behaviour Status:  Fixed
Privacy:  Public Assigned to:  goldsimon
Open/Closed:  Closed Planned Release:  None
lwIP version:  git head

Tue 26 Apr 2016 03:19:40 PM UTC, comment #3: 

Feel free to take whatever you may find useful from my fork and port it to this one.
If the license gets in the way just let me know and I'll change it.

Sergio R. Caprile <scaprile>
Tue 26 Apr 2016 11:02:45 AM UTC, comment #2: 

After long work, I've just committed an updated version of the httpd, with these changes (among others):
- added persistent connections
- improved asynchronous read mode
- compile-time deflate compression
- new CGI mode
- SSI handler can be called with tag string (instead of tag index)

during development, the case sensitivity issue had already been fixed.

Simon Goldschmidt <goldsimon>
Group administrator
Thu 10 Sep 2015 07:07:26 PM UTC, comment #1: 

Sorry I haven't commented on this. I have many changes for the httpd in my queue which are not pushed yet, and this is one of them.

Simon Goldschmidt <goldsimon>
Group administrator
Tue 11 Aug 2015 08:02:05 PM UTC, original submission:  

HTTP headers are case-insensitiv, so using strnstr to find the Content-Length header fails with browsers which use other case variants that the one defined in the code.

The attached patch tries to solve this problem. The patch is also available at:
https://github.com/mhei/lwip-contrib/tree/httpd_strncasestr

Michael Heimpold <mhei>

 

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

 

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 mhei (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-04-26 goldsimon StatusNone Fixed
        Assigned toNone goldsimon
        Open/ClosedOpen Closed
    2015-08-11 mhei Attached File- Added 0001-httpd_raw-fix-detection-of-Content-Length-header.patch, #34627

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code