Comments on: Conditional API Responses For JavaScript vs. HTML Forms https://austingil.com/http-javascript-vs-html/ Riding bikes, writing poetry, righting software Wed, 04 Jan 2023 13:40:10 +0000 hourly 1 By: Austin https://austingil.com/http-javascript-vs-html/#comment-24 Wed, 04 Jan 2023 09:59:17 +0000 https://austingil.com/?p=9331#comment-24 In reply to Simon MacDonald.

Yeah, you’re right. The framework I’m using lowercases all headers, but this is a good point to call out in the article. I’ll add a note.

]]>
By: Simon MacDonald https://austingil.com/http-javascript-vs-html/#comment-23 Wed, 04 Jan 2023 01:06:22 +0000 https://austingil.com/?p=9331#comment-23 Nice post! One thing that may trip folks up is sometimes HTTP headers come in capitalized. You’ll want to check for ‘accept’ or ‘Accept’ and ‘content-type’ or ‘Content-Type’. We’ve run into this one in the wild a bunch. It really depends on what the client sends as headers.

]]>