You're correct, this is the best way to do it as it's more explicit, and certain web servers will require the header. I'd love to know what header it uses by default as my examples worked and I wanted to cut down on code so I removed it. I assumed that by default it was actually using 'application/json'. Hm 😊
You're correct, this is the best way to do it as it's more explicit, and certain web servers will require the header. I'd love to know what header it uses by default as my examples worked and I wanted to cut down on code so I removed it. I assumed that by default it was actually using
'application/json'
. Hm 😊For me when I sent the payload to the flask/python side it was interpreted as nonetype.
Ah, well there's our answer. Great. Thanks for letting me know! I'll update this post later 👍