Skip to content
This repository has been archived by the owner on Sep 3, 2021. It is now read-only.

Add static property to set the protocol used with the API URLs. #60

Merged
merged 3 commits into from
Mar 15, 2021

Conversation

tristanhall
Copy link
Contributor

Add getProtocol and setProtocol static methods to USPSBase to allow changing the API protocol as needed.
Fix for #59

Add getProtocol and setProtocol static methods to USPSBase to allow changing the API protocol as needed.

Signed-off-by: Tristan Hall <[email protected]>
@VinceG
Copy link
Owner

VinceG commented Mar 13, 2021

@tristanhall if they deprecate the http protocol wouldn't it make sense to just use https and not have this as an option? we can tag this as a minor version. thoughts?

@tristanhall
Copy link
Contributor Author

@VinceG Yep, that makes sense. My intention was to provide an option to switch in case someone wasn't ready to adopt HTTPS, but simply switching over to https would make for a smaller code change.
I'll update the PR in a few.

Thanks for the quick feedback! 😃

@VinceG VinceG merged commit d886554 into VinceG:master Mar 15, 2021
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