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

ASF subversion and git services commented on KUDU-3543:
-------------------------------------------------------

Commit d2b70fef79d963099c8def7632521d3f31da81ff in kudu's branch 
refs/heads/master from Marton Greber
[ https://gitbox.apache.org/repos/asf?p=kudu.git;h=d2b70fef7 ]

KUDU-3543: Add JSON Content-Type Header

This patch introduces path handlers for pages that require the
Content-Type header application/json and integrates them accordingly.
Additionally, the test data has been updated to ensure proper coverage.

Change-Id: I37b442cb3e8be68f7b243e66ed5ebe369df07829
Reviewed-on: http://gerrit.cloudera.org:8080/21661
Tested-by: Alexey Serbin <[email protected]>
Reviewed-by: Alexey Serbin <[email protected]>


> Fix Content-Type headers
> ------------------------
>
>                 Key: KUDU-3543
>                 URL: https://issues.apache.org/jira/browse/KUDU-3543
>             Project: Kudu
>          Issue Type: Bug
>            Reporter: Marton Greber
>            Assignee: Marton Greber
>            Priority: Major
>         Attachments: ipki-ca-cert-der.png, metrics.png
>
>
> The Content-Type headers are not correctly set in the webserver.
> Some time ago only 'text/html' and 'text/plain' were implemented.
> Then 'application/octet-stream' has been added. But this was not wired in.
> Find attached screenshots for proof.
> As a sidenote the metrics endpoint should have 'application/json' if we are 
> already touching this part of the codebase.
> (This came up while working on the service discovery endpoint for Prometheus, 
> which would requre 'application/json' on that endpoint)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to