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

Every request logs header errors in chrome #2

Open
voliva opened this issue Feb 11, 2020 · 0 comments
Open

Every request logs header errors in chrome #2

voliva opened this issue Feb 11, 2020 · 0 comments

Comments

@voliva
Copy link

voliva commented Feb 11, 2020

When using this library, every request to PutLogEvents results in Refused to set unsafe header "Host" or Refused to set unsafe header "Content-Length" being logged in the chrome console.

unsafe_header

I couldn't find exactly how are these parameters used, so as a workaround I deleted both of these headers from getRequestParams, on line 36:

delete opts.headers['Host'];
delete opts.headers['Content-Length'];

Maybe it would be better if this can be handled in the place where these headers are set.

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

1 participant