session: move from http to https as default scheme #4068
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Apply the https scheme to all input URLs if the scheme is missing:
http-proxy
(--http-proxy
CLI argument)akamaihd://URL
dash://URL
orURL.mpd
hds://URL
orURL.f4m
hls://URL
orURL.m3u8
httpstream://URL
Regular http URLs (non-https/TLS) will need to be set explicitly now.
Also
Resolves #4047
Follow-up of #4053
This changes the way user input is handled. In almost all cases, this simply avoids the initial insecure http request when no scheme was defined, which then gets redirected by the server to a secure connection, so no breaking change here. For sites though which don't support https/TLS, setting the http scheme is now mandatory, which is the reason why I'm not sure if this is a breaking change. It probably is...
http-proxy
option make sense?If we change the stream URL input, then we should change this too, IMO.
Also, having two separate options for http and https is stupid and we should merge this at some point.