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

Submitted by:  Michael Heimpold <mhei>
Submitted on:  Tue 11 Aug 2015 08:02:05 PM UTC  
 
Category: ContribSeverity: 3 - Normal
Item Group: Faulty BehaviourStatus: Fixed
Privacy: PublicAssigned to: Simon Goldschmidt <goldsimon>
Open/Closed: ClosedPlanned 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>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.
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>

 

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by goldsimon (Posted a comment)
  • -unavailable- added by mhei (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 26 Apr 2016 11:02:45 AM UTCgoldsimonStatusNone=>Fixed
      Assigned toNone=>goldsimon
      Open/ClosedOpen=>Closed
    Tue 11 Aug 2015 08:02:05 PM UTCmheiAttached File-=>Added 0001-httpd_raw-fix-detection-of-Content-Length-header.patch, #34627

    Back to the top


    Powered by Savane 3.1-cleanup1