farbodsz / confluence-cli

Command line interface using Atlassian Confluence REST API.
MIT License
3 stars 1 forks source link

Correctly handle HTTP 2xx responses that may not have a response body #6

Closed farbodsz closed 1 year ago

farbodsz commented 1 year ago

Simply changing parseResponse in API/Request.hs to allow any 2xx response doesn't work, because it will try to decode it into a JSON format, even if that is unit ().