sphinx-contrib / confluencebuilder

Confluence Markup Builder Plugin for Sphinx
BSD 2-Clause "Simplified" License
317 stars 99 forks source link

Set Accept header in REST calls #919

Closed jdknight closed 8 months ago

jdknight commented 8 months ago

rest: provide an explicit accept header

Updating all REST calls performed to have an Accept header using a application/json; charset=utf-8 value. This extension expects only UTF-8-encoded JSON data, and it is best to provide this feedback to a target Confluence instance or proxy.

report: switch to parsing json manifest data over xml

Since this extension's REST client has been updated to indicate we only support JSON, a manifest request to Confluence will now return JSON data over XML. Updating to report logic to parse using JSON instead.