This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author martin.panter
Recipients Arfrever, martin.panter, orsenthil, pitrou, rhettinger
Date 2015-04-11.10:56:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1428749815.07.0.643448528089.issue22450@psf.upfronthosting.co.za>
In-reply-to
Content
The RFC <https://tools.ietf.org/html/rfc7231#page-39> says “A request without any Accept header field implies that the user agent will accept any media type in response”, which sounds the same as “Accept: */*”. I don’t understand why adding it should make a real difference.

If you really desire only application/json, you should probably include “Accept: application/json” in the request. Otherwise, it would probably be more robust to make your program accept both types. I have come across the same deal with application/atom+xml vs text/xml vs application/xml.
History
Date User Action Args
2015-04-11 10:56:55martin.pantersetrecipients: + martin.panter, rhettinger, orsenthil, pitrou, Arfrever
2015-04-11 10:56:55martin.pantersetmessageid: <1428749815.07.0.643448528089.issue22450@psf.upfronthosting.co.za>
2015-04-11 10:56:55martin.panterlinkissue22450 messages
2015-04-11 10:56:54martin.pantercreate