-
-
Notifications
You must be signed in to change notification settings - Fork 936
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
Some beforeRequest
edited options are discarded
#1293
Conversation
Also i wanted to talk about the "unix socket url parsing" before the request. Documentation for
But this code is modifying some options, after I think this code should be moved before |
No, it should stay where it is. It just translates |
https://travis-ci.com/github/sindresorhus/got/jobs/340837947#L756
Can you figure out why it fails please? |
Even the |
By doing some test it seems to happen only with Node.JS >= 14.3.0 |
These Node.JS commits (merged into 14.3.0) could be relevant to this issue: |
Currently he edits of
options.agent
andoptions.url
made inbeforeRequest
are discarded.This PR simply read
agent
andurl
afterbeforeRequest
hooks.Checklist
Fixes #1292