GitHub user stigsb opened a pull request: https://github.com/apache/thrift/pull/201
JavaScript: set Accept: and Content-Type: headers in request 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". You can merge this pull request into a Git repository by running: $ git pull https://github.com/stigsb/thrift THRIFT-2674 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/thrift/pull/201.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #201 ---- commit e55fa30b317f5e86af55e12f2e09e13ebb1d49e5 Author: Stig Bakken <s...@zedge.net> Date: 2014-08-21T19:18:08Z JavaScript: set Accept: and Content-Type: headers in request ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---