collective / sphinxcontrib-httpexample

Adds example directive for sphinx-contrib httpdomain
23 stars 20 forks source link

Avoid passing -j to HTTPie unless there is request data. #19

Closed dokai closed 6 years ago

dokai commented 6 years ago

Passing -j on read requests without request data may cause the request to fail because HTTPie adds a Content-Type: application/json header which may cause the server to attempt JSON decoding on the empty body.

coveralls commented 6 years ago

Coverage Status

Coverage increased (+0.02%) to 96.959% when pulling ad90d406d530e0f97c969afd5bbf398d7535a19e on dokai:httpie into aa8a8c7c273c03fc7969d181fda0cf700d4dc98c on collective:master.

dokai commented 6 years ago

Closing this in favor of https://github.com/collective/sphinxcontrib-httpexample/pull/20