Skip to content

Commit

Permalink
Merge pull request #523 from philippe44/some-302-redir-omits-protocol-
Browse files Browse the repository at this point in the history
missing protocol in redir 302
  • Loading branch information
mherger committed Jan 30, 2021
2 parents f8b2e48 + 6dd1861 commit 7cfad63
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Slim/Formats/RemoteStream.pm
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ sub request {
# socket in a CLOSE_WAIT state and leaking.
$self->close();

# some 302 Location: omit the protocol
$redir = ($url =~ m|^(\w+://)|)[0] . $redir if $redir !~ m|^\w+://|;
main::INFOLOG && $log->info("Redirect to: $redir");

return $class->open({
Expand Down

0 comments on commit 7cfad63

Please sign in to comment.