Added util method to upgrade the connection to a secure one. (#2551)
* Added util method to upgrade the connection to a secure one.
- Adds support for websocket URIs
- Fixes bug where a non-secure scheme other than http would be changed to https
- Deprecated `updateToHttpsIfNeeded` in favor of `updateToSecureConnectionIfNeeded`
* Expect http when no scheme was set
* Skip update to secure connection when the uri is empty
Showing
Please
register
or
sign in
to comment