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

JavaScript: declare Accept: and Content-Type: in request

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.3
    • Component/s: JavaScript - Library
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      When a JS client communicates with a backend supporting several encodings, knowing which protocol to use is a bit kludgy. This patch tries to fix that by always setting the Accept: and Content-Type: request headers to "application/json".

        Attachments

        1. js-type.diff
          1 kB
          Stig Bakken

          Issue Links

            Activity

              People

              • Assignee:
                henrique Henrique Mendonca
                Reporter:
                stigsb Stig Bakken
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: