Discovered recently that a certain CLI tool doesn't send content-type headers. Perhaps if all requests are always JSON, then you can save some bits by not specifying content-type: application/json every time. Whatevs. That's silly.
Regardless, paperplane shouldn't care if you're a negligent engineer. This PR catches those nasty errors and assumes your body encoding is utf8, which was our default before anyways.
Discovered recently that a certain CLI tool doesn't send
content-type
headers. Perhaps if all requests are always JSON, then you can save some bits by not specifyingcontent-type: application/json
every time. Whatevs. That's silly.Regardless,
paperplane
shouldn't care if you're a negligent engineer. This PR catches those nasty errors and assumes your body encoding isutf8
, which was our default before anyways.