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

Setting headers blows out default headers. #12

Open
dturner34 opened this issue Mar 19, 2024 · 0 comments
Open

Setting headers blows out default headers. #12

dturner34 opened this issue Mar 19, 2024 · 0 comments

Comments

@dturner34
Copy link

headers = headers || this._getRequestHeaders(url);

This line blows out the default header values when passing any header which is probably not expected behavior and it causes humanoid to fail to the cloudflare check, at least in my case. It would be a simple fix to merge objects headers = {...this._getRequestHeaders(url), ...headers}. A temporary/hacky work around for this would be to merge in headers from humanoid._getRequestHeaders(url) before passing them to the request,

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