[Twisted-Python] treq POST abborting with: err: ('Could not adapt', '{"....", "..."} <InterfaceClass twisted.web.iweb.IBodyProducer>)

Tristan Seligmann mithrandi at mithrandi.net
Sun Jan 8 01:52:20 MST 2017


On Sun, 8 Jan 2017 at 01:57 Glyph Lefkowitz <glyph at twistedmatrix.com> wrote:

>
> I see you your standards pedantry, and raise you!
>
> MIME defines content-type to always have a charset:
>
> *https://tools.ietf.org/html/rfc1521#section-4
> <https://tools.ietf.org/html/rfc1521#section-4>*
>

RFC 1521 is obsoleted by RFC 2045 which has more nuanced semantics:
https://tools.ietf.org/html/rfc2045#section-5

But actually, HTTP is not MIME; so we should be looking here instead:
https://tools.ietf.org/html/rfc7231#section-3.1.1.1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20170108/99cf022f/attachment-0002.html>


More information about the Twisted-Python mailing list