#19 case insensitive http headers

open
Joe Drew
Patches (14)
5
2016-05-14
2012-09-20
Anonymous
No

RFC 2616 specifies that HTTP headers are case-insensitive. Fix a bunch of places where ptrncmp() should be strncasecmp()

Discussion

  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2012-09-20

    fixes strncmp to strncasecmp to align with HTTP spec

     
  • Antonio Fco. Bennasar Obrador

    The patch works for me: I have a server that sends:
    HTTP header: >Content-type: audio/mpeg<
    "t" of Type is lowercase
    Before the patch, it did not work, after it worked.

    Thank you Anonymous

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks