Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Allow custom headers #209

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

Merged
merged 2 commits into from
May 2, 2020
Merged

Conversation

purplecabbage
Copy link
Contributor

headers were being overwritten if they were part of the options passed in.
This change uses Object.assign on the inner headers object so headers are only overwritten if they have the same key.

@codecov-io
Copy link

Codecov Report

Merging #209 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #209   +/-   ##
=======================================
  Coverage   99.05%   99.06%           
=======================================
  Files          14       14           
  Lines         425      426    +1     
=======================================
+ Hits          421      422    +1     
  Misses          4        4           
Impacted Files Coverage Δ
lib/client.js 98.90% <100.00%> (+0.01%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7c33707...9321385. Read the comment docs.

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

Successfully merging this pull request may close these issues.

3 participants