logoalt Hacker News

tvinkyesterday at 7:23 AM3 repliesview on HN

Probably because you didn't include the content type header?


Replies

therealwardoyesterday at 7:55 AM

yep that would fix it. just needs a little docs change.

a "quick start" really should just work when you copy paste them.

ch2026yesterday at 5:40 PM

why does an API that only accepts json need me to specify in a header that it’s json.

just assume it’s json. you’re gonna parse and validate it anyway.

show 1 reply
rendawyesterday at 1:01 PM

Can it be some other content type?