Skip to content
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

Kiota headers get garbled #2461

Open
edewit opened this issue Apr 26, 2023 · 2 comments
Open

Kiota headers get garbled #2461

edewit opened this issue Apr 26, 2023 · 2 comments

Comments

@edewit
Copy link

edewit commented Apr 26, 2023

When using Kiota in a console dot app the iqeEnablement.ts fetch replacement change the headers to something invalid. I can't 100% say what is the cause

This is what happens an array

Access-Control-Request-Headers: 0,user-agent
@Hyperkid123
Copy link
Contributor

Hyperkid123 commented Apr 26, 2023

@edewit We automatically add auth header to any fetch/xhr. Can you give an example of the request so we can reproduce the issues and what would be the expected header vs the mangled one?

@edewit
Copy link
Author

edewit commented Apr 26, 2023

@Hyperkid123 see the fix, the error is when the headers are in the form of Record<string, string[]>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants