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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.9.3
    • JavaScript - Library
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: