Ticket #4779: 4779.fsockopen.post.content-headers.diff
File 4779.fsockopen.post.content-headers.diff, 693 bytes (added by , 16 years ago) |
---|
-
wp-includes/http.php
445 445 $strHeaders = ''; 446 446 $strHeaders .= strtoupper($r['method']) . ' ' . $requestPath . ' HTTP/' . $r['httpversion'] . "\r\n"; 447 447 $strHeaders .= 'Host: ' . $arrURL['host'] . "\r\n"; 448 if ( ! is_null($body) ) { 449 $strHeaders .= 'Content-Type: application/x-www-form-urlencoded; charset=' . get_option('blog_charset') . "\r\n"; 450 $strHeaders .= 'Content-Length: ' . strlen($body) . "\r\n"; 451 } 448 452 449 453 if ( is_array($headers) ) { 450 454 foreach ( (array) $headers as $header => $headerValue )