sindresorhus / got

🌐 Human-friendly and powerful HTTP request library for Node.js
MIT License
14.31k stars 936 forks source link

Patch 1 #2378

Closed dscotese closed 2 months ago

dscotese commented 2 months ago

Lowercased two inappropriately caliptalized occurrences of "foo". I wasn't sure if this was correct so I asked an AI (Gemini) which explained that while HTTP headers are case insensitive, the property names of Javascript objects are not, so foo and Foo are different and the code was asking for the wrong one.

Checklist