Skip to content

Allow setting custom headers on API connection - #562

Merged
mattwiller merged 5 commits into
masterfrom
set_headers
Mar 20, 2018
Merged

mattwiller merged 5 commits into
masterfrom
set_headers

Conversation

@mattwiller

Copy link
Copy Markdown

No description provided.

@boxcla

boxcla commented Feb 21, 2018

Copy link
Copy Markdown

Verified that @mattwiller has signed the CLA. Thanks for the pull request!

* This undoes any previous calls to asUser().
* @see #asUser
*/
public void asSelf() {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice name

this.addHeader(header, customHeaders.get(header));
}
}
this.headers.add(new RequestHeader("X-Box-UA", api.getBoxUAHeader()));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Minor - this can probably go as a header in the api connection as well instead of lingering around as a special value in the api connection

@mattwiller
mattwiller merged commit d75468f into master Mar 20, 2018
@mattwiller
mattwiller deleted the set_headers branch March 20, 2018 23:28
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