[ 
https://issues.apache.org/jira/browse/HTRACE-52?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14264686#comment-14264686
 ] 

stack commented on HTRACE-52:
-----------------------------

You mean to include all that int type to unint in cmd.go in this patch?  cmd.go 
should send content-type?

Otherwise, +1

htraced doesn't do keepalive, does it?

If no content-type, you try and digest as json and throw back parse exception 
it seems -- thats good.



> FIgure out content-type handling in JSON API
> --------------------------------------------
>
>                 Key: HTRACE-52
>                 URL: https://issues.apache.org/jira/browse/HTRACE-52
>             Project: HTrace
>          Issue Type: Bug
>    Affects Versions: 3.2.0
>            Reporter: Colin Patrick McCabe
>            Assignee: Colin Patrick McCabe
>         Attachments: HTRACE-52.001.patch
>
>
> We should figure out how to handle content-type in the JSON API.  We should 
> definitely be setting {{Content-Type}} as {{application/json}} when writing 
> data.
> I guess a secondary question is whether the server should reject calls to 
> APIs like {{/writeSpan}} if Content-Type is set incorrectly.  I'm not sure if 
> this adds any value... thoughts?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to