Open Jaymon opened 4 days ago
Ugh, this is Content-Type abnf:
Content-Type = media-type
media-type = type "/" subtype *( OWS ";" OWS parameter )
parameter = token "=" ( token / quoted-string )
So I was wrong above. Content-Type
is just the name of the http header, and its value is a media-type
, and a media-type
value can have the parameters on it.
More reading:
This affects Request and Response and probably some other places (including the
RESPONSE_CONTENT_TYPE
environment variable). I basically usecontent_type
formedia_type
in a bunch of places and I should switch them all because I almost always meanmedia_type
when I'm usingcontent_type
Reading: