Create a new pull request by comparing changes #103
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
It was adding User-Agent and removing Authorization, but only when
existing headers had the exact right casing. Node uses caseless logic
when managing headers.
This was causing some requests to have
User-Agent
appended to theheaders object and overriding provided agent strings.
Also included is an update to not override the
Content-Length
if itwas already defined in the options. It can be desirable to manually
specify a content length that does not match the data on hand.
Especially for testing.
Fix eslint error
fixup: update state UA logic
Play nice with axios#3703
Co-authored-by: Jay jasonsaayman@gmail.com
Instructions
Please read and follow the instructions before creating and submitting a pull request:
Describe your pull request here.