Subject: | Component::Client::HTTP doesn't like ICY headers |
The status line parsing code expects "HTTP" to be there, and if it isn't, any http headers following it are ignored.
Changing:
if (
$request->[REQ_BUFFER] =~
s/^(HTTP\/[0-9\.]+)?\s*(\d+)\s*(.*?)([\x0D\x0A]+)([^\x0D\x0A])/$5/
) {
To:
if (
$request->[REQ_BUFFER] =~
s/^([A-Z]+(?:\/[0-9\.]+)?)?\s*(\d+)\s*(.*?)([\x0D\x0A]+)([^\x0D\x0A])/$5/x
) {
fixes it.