forked from owncloud/music
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix header parsing in HttpUtil::loadFromUrl
In case there was a redirection in the URL loaded, the status_code and message returned came from the first redirection response and not from the last response after the redirection(s). Potentially, also the content_type could come from an intermediate result although likely the redirection responses shouldn't define this header. This may have caused other bugs too, but at least this broke the radio playback in cases where the given URL redirected to another URL which was a playlist file pointing to the actual audio stream. For example, http://sverigesradio.se/topsy/direkt/226-hi-aac.pls is such URL.
- Loading branch information
Showing
3 changed files
with
43 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters