Skip to content

Commit

Permalink
Don't include the new line character in the content type.
Browse files Browse the repository at this point in the history
  • Loading branch information
mherger committed Apr 19, 2016
1 parent 8bb187f commit 3a42718
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Slim/Player/Protocols/HTTP.pm
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ sub parseDirectHeaders {
$redir = $1;
}

elsif ($header =~ /^Content-Type:\s*([^;]*)/i) {
elsif ($header =~ /^Content-Type:\s*([^;\n]*)/i) {
$contentType = $1;
}

Expand Down

0 comments on commit 3a42718

Please sign in to comment.