[ 
https://issues.apache.org/jira/browse/HTRACE-52?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Colin Patrick McCabe updated HTRACE-52:
---------------------------------------
    Attachment: HTRACE-52.001.patch

* Fix Span#ToString

* {{bin/htrace}} command: Fix some more cases where this command was not quite 
right.   I filed HTRACE-53 to add a unit test for this command.

* {{rest.go}}:  The server always now sets {{Content-Type}} to 
{{application/json}}, unless it's serving a web page intended to be viewed in a 
browser.

* {{rest.go}}: findChildren when there are no children should not be an error; 
it should just return an empty JSON array.

> 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
>         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