-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request headers not being set #836
Comments
Here's my spec file:
|
After some debugging looks like the problem was that the SDK was lowercasing the headers but the spec expected it as mixed case (eg: x-authorization vs X-Authorization), so I worked around this by lowercasing all my headers in my spec. I'm not sure if it's still an issue though, headers should be case insensitive so it should work either way. |
This is still an issue when using a third party spec. None of the headers get sent if their spec has the headers as anything but lower case. |
After installing my opneapi definitions:
npx api install @hytopia-api-internal/v1.0#1q9bc1r2lorj18va # or npx api@next install @hytopia-api-internal/v1.0#1q9bc1r2lorj18va
My TS definitions seem to be generated just fine, this request looks correct on my TS files:
However looking at my API server the X-Review-Provider-Key is not being sent at all, also the X-Authorization header gets ignored as well even though the TS definitions allow it. Making the request through our documentation page in readme.io does work fine though.
Am I doing something wrong or is it a bug?
Edit: I get the same issue generating the SDK with the latest v7 beta branch.
The text was updated successfully, but these errors were encountered: