Skip to content
This repository has been archived by the owner on Feb 6, 2018. It is now read-only.

Adds support for custom headers via params #14

Merged
merged 4 commits into from
Feb 8, 2016
Merged

Adds support for custom headers via params #14

merged 4 commits into from
Feb 8, 2016

Conversation

ekryski
Copy link
Member

@ekryski ekryski commented Feb 8, 2016

This allows you to set params.headers and those get passed to each transport appropriately. This is primarily to support auth.

@ekryski
Copy link
Member Author

ekryski commented Feb 8, 2016

Refs #12.

@@ -10,6 +10,7 @@ export default class Base {
}

makeUrl(params, id) {
params = params || {};
Copy link
Member

Choose a reason for hiding this comment

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

this can be makeUrl(params = {}, id)

Copy link
Member

Choose a reason for hiding this comment

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

I think... maybe not though.

Copy link
Member Author

Choose a reason for hiding this comment

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

Our linter prevents it. I think you can put a jshint comment I guess.

@daffl daffl changed the title Adds support for custom headers via hooks Adds support for custom headers via params Feb 8, 2016
ekryski added a commit that referenced this pull request Feb 8, 2016
Adds support for custom headers via hooks. Closes #12.
@ekryski ekryski merged commit 8407a51 into master Feb 8, 2016
@ekryski ekryski deleted the auth-support branch February 8, 2016 21:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants