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

Node.js: Missing header from http request

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.9.2
    • Fix Version/s: 0.11.0
    • Component/s: Node.js - Library
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      The "Content-Type" header is not being set to "application/x-thrift" when making http requests in the node.js implementation. This results in error response (status 400) for any such connections (depending on whether the server checks the header). The Python implementation for example adds the header explicitly:
      https://github.com/tstanev/thrift/blob/master/lib/py/src/transport/THttpClient.py#L127

        Attachments

          Activity

            People

            • Assignee:
              jking3 James E. King III
              Reporter:
              tstanev Traian Stanev
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: