Closed EverlyScott closed 9 months ago
The module expects a Node.js HTTP request object, and as such, the keys in your headers
object needs to be all lower case, no upper letters.
https://nodejs.org/dist/latest-v21.x/docs/api/http.html#messageheaders
Key-value pairs of header names and values. Header names are lower-cased.
Alright it works now; thank you
I'm writing a Next.JS application that uses negotiator to find the best language to use from what we have translated.
This is our code currently:
Am I doing something wrong?