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

Extra HTTP headers can be passed with CreateOptions #223

Merged
merged 2 commits into from
Jul 19, 2019

Conversation

rgba
Copy link
Contributor

@rgba rgba commented Jul 18, 2019

- fixes Sending Authentication/token Info westy92#142
- fixes Add extra http header westy92#198
src/index.ts Outdated Show resolved Hide resolved
src/index.ts Outdated Show resolved Hide resolved
test/index.ts Outdated Show resolved Hide resolved
src/CreateOptions.ts Outdated Show resolved Hide resolved
test/index.ts Show resolved Hide resolved
@westy92
Copy link
Owner

westy92 commented Jul 18, 2019

Thank you so much for your contribution! I left a few comments.

- extraHTTPHeaders are now passed as string:string mapping, this is
  a much cleaner solution as this does not longer require an additional
  step to map data into the correct format

- enhanced test case to check if passing multiple headers works
  correctly

- fixed linting and performance issues
@codecov
Copy link

codecov bot commented Jul 19, 2019

Codecov Report

Merging #223 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #223   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           9      9           
  Lines         143    145    +2     
  Branches       19     20    +1     
=====================================
+ Hits          143    145    +2
Impacted Files Coverage Δ
src/index.ts 100% <100%> (ø) ⬆️

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 d2d1731...e2ede8a. Read the comment docs.

@rgba
Copy link
Contributor Author

rgba commented Jul 19, 2019

@westy92 Thank you very much for the detailed code review, I think the code should be in good shape now :)

Copy link
Owner

@westy92 westy92 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you soooo much for your contribution and quick response to feedback! 🎉

@westy92 westy92 merged commit 92f597b into westy92:master Jul 19, 2019
@westy92
Copy link
Owner

westy92 commented Jul 19, 2019

I just published this with v0.6.0.

@rgba
Copy link
Contributor Author

rgba commented Jul 19, 2019

@westy92 Awesome! Thank you very much!

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.

2 participants