Ticket #9037: http-duplicate-headers.diff
File http-duplicate-headers.diff, 641 bytes (added by , 16 years ago) |
---|
-
http.php
528 528 529 529 list($key, $value) = explode(':', $tempheader, 2); 530 530 531 if ( ! empty($value) ) 532 $newheaders[strtolower($key)] = trim($value); 531 if ( !empty( $value ) ) { 532 if ( isset( $newheaders[strtolower( $key )] ) ) { 533 $newheaders[strtolower( $key )] = array( $newheaders[strtolower( $key )], trim( $value ) ); 534 } else { 535 $newheaders[strtolower( $key )] = trim( $value ); 536 } 537 } 533 538 } 534 539 535 540 return array('response' => $response, 'headers' => $newheaders);