mh_ wrote: > Awesome, it works! You rock, bpa. Thanks! > > Btw could that regexp be: (untested!) > /^Content-Type:\s*(.*)[;$]/i
Not sure but the root of the problem problem is that the "." doesn''t match newline so so contentType is "audio/aacp" when "Content-Type" header is terminated by newline whereas the new pattern matches newline so the contentType becomes "audio/aacp\n". My suggested pattern would be below where termination characters are clear. /^Content-Type:\s*([^;\n]*)/i But I'd leave it to Michael to make sure it solved the original bug. ------------------------------------------------------------------------ bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=105467 _______________________________________________ beta mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/beta
