[
https://issues.apache.org/jira/browse/THRIFT-2674?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14106088#comment-14106088
]
Randy Abernethy commented on THRIFT-2674:
-----------------------------------------
Would be fantastic to get these in the IANA registry. One comment, per the IANA
Structured Syntax Suffix Registry
(http://www.iana.org/assignments/media-type-structured-suffix/media-type-structured-suffix.xhtml)
and RFC 6838 section 4.2.8 it seems that +json is reasonable (in fact very
valuable) but +compact probably is not. Compact protocol format is not really
general enough.
So perhaps:
TBinaryProtocol: "application/vnd.apache.thrift"
TCompactProtocol: "application/vnd.apache.thrift.compact"
TJSONProtocol: "application/vnd.apache.thrift+json"
> 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
>
> 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.2#6252)