[
https://issues.apache.org/jira/browse/THRIFT-2674?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14157111#comment-14157111
]
Jens Geyer commented on THRIFT-2674:
------------------------------------
Randy brought this up on the mailing list today so I had a short look.
[WP|http://en.wikipedia.org/wiki/Internet_media_type#Suffix] references various
RFCs for the suffix theme, such as the [+json
suffix|http://tools.ietf.org/html/rfc6839#section-3.1] in RFC6839. However,
only {{+json}} is a defined suffix, neither binary nor compact nor anything
else we support today would fall into that category.
$0,02
> JavaScript: declare Accept: and Content-Type: in request
> --------------------------------------------------------
>
> Key: THRIFT-2674
> URL: https://issues.apache.org/jira/browse/THRIFT-2674
> Project: Thrift
> Issue Type: Bug
> Components: JavaScript - Library
> Reporter: Stig Bakken
> Priority: Minor
> Attachments: js-type.diff
>
>
> 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".
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)