equal
deleted
inserted
replaced
505 */ |
505 */ |
506 static public function prepareHeaders($headers, $count = 1) |
506 static public function prepareHeaders($headers, $count = 1) |
507 { |
507 { |
508 $data = explode("\r\n\r\n", $headers, $count); |
508 $data = explode("\r\n\r\n", $headers, $count); |
509 $data = array_pop($data); |
509 $data = array_pop($data); |
510 if (false !== stripos($data, "HTTP/1.0 200 Connection established\r\n\r\n")) { |
510 if (false !== stripos($data, "HTTP/1.0 200 Connection established\r\n")) { |
511 $data = str_ireplace("HTTP/1.0 200 Connection established\r\n\r\n", '', $data); |
511 $exploded = explode("\r\n\r\n", $data, 2); |
512 } |
512 $data = end($exploded); |
513 if (false !== stripos($data, "HTTP/1.1 200 Connection established\r\n\r\n")) { |
513 } |
514 $data = str_ireplace("HTTP/1.1 200 Connection established\r\n\r\n", '', $data); |
514 if (false !== stripos($data, "HTTP/1.1 200 Connection established\r\n")) { |
|
515 $exploded = explode("\r\n\r\n", $data, 2); |
|
516 $data = end($exploded); |
515 } |
517 } |
516 return $data; |
518 return $data; |
517 } |
519 } |
518 } |
520 } |