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

add headerFields dict property to NXOAuth2Request #175

Merged
merged 2 commits into from
Oct 15, 2015

Conversation

judev
Copy link
Contributor

@judev judev commented May 9, 2015

So we can add custom HTTP headers per request.

So we can add custom HTTP headers per request.
@sirnacnud
Copy link
Contributor

Any chance this can get merged in or we have some official support for setting header fields? It seems like many people need this support, as someone else added similar functionality #132.

{
for (id key in someHeaders) {
id value = someHeaders[key];
if ([key isKindOfClass:[NSString class]] && [value isKindOfClass:[NSString class]]) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be an NSAssert since not spacing this right is a programmer error. This fails silently which is dangerous.

@toto
Copy link
Contributor

toto commented Oct 15, 2015

Looks good. If you fix the one complaint we can absolutely merge this.

@judev
Copy link
Contributor Author

judev commented Oct 15, 2015

Cool, have updated to use asserts

toto added a commit that referenced this pull request Oct 15, 2015
add headerFields dict property to NXOAuth2Request
@toto toto merged commit 1b536fc into nxtbgthng:develop Oct 15, 2015
@sirnacnud
Copy link
Contributor

Thanks for the fast response!

@toto
Copy link
Contributor

toto commented Oct 15, 2015

Sure :-) I will look into pushing a new version to Cocoapods next week.

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