Skip to content

Conversation

@TylerMcCraw
Copy link
Contributor

Note: this is a continuation of PR #165, but aims at tidying up the code as requested by @zmarkan

Description of the pull request

By subclassing ConnectionFactory and passing a new instance into the HttpAuthorizer class, it is now possible to send JSON objects in the body, rather than only "Content-Type: application/x-www-form-urlencoded" strings.
Users can also set the correct headers to be sent - for example "Content-Type: application/json", and are able to override the "charset" header as well.

Why is the change necessary?

#164


CC @pusher/mobile

@TylerMcCraw
Copy link
Contributor Author

@zmarkan, as noted, this is a continuation of PR #165.
Please let me know if this looks good.
This is a hard requirement for me, so we need a response soon. 🙏

@zmarkan
Copy link
Contributor

zmarkan commented Jan 23, 2018

Thanks for submitting it - I'll check it out today.

@zmarkan
Copy link
Contributor

zmarkan commented Jan 23, 2018

The code looks ok from reading it - just trying it in a project now.

@zmarkan zmarkan merged commit ba47305 into pusher:master Jan 23, 2018
@zmarkan
Copy link
Contributor

zmarkan commented Jan 23, 2018

I've pushed to maven central. Should be available as 1.7.0 in a few hours when it propagates. Thanks for contributing!

@TylerMcCraw
Copy link
Contributor Author

woohoo! 🎉
Thanks for moving it along so quickly.

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