Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-2858

Enable header field case insensitive match in THttpServer

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9.1, 0.9.2
    • 0.9.3
    • C++ - Library
    • ubuntu 14.04 LTS
      gcc 4.8

    • Patch Available

    Description

      Communications between THttpServer in cpp lib and nodejs http client caused unexpected ECONNRESET. This was caused by nodejs client setting "Content-length" instead of "Content-Length" in the header field, causing THttpServer to terminate the request prematurely.

      Per HTTP specification, header field name is case insensitive, therefore this patch used case insensitive match to identify "Content-Length" field.

      Attachments

        Activity

          People

            roger Roger Meier
            yihungjen YI-HUNG JEN
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified