Skip to content

Commit 601f3d8

Browse files
committed
Add text/xml content type to xmlrpc request header
#2879
1 parent b9d1f45 commit 601f3d8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

php/xmlrpc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public static function send( $data, $trusted = true )
106106
$socket = @fsockopen($scgi_host, $scgi_port, $errno, $errstr, $rpcTimeOut);
107107
if($socket)
108108
{
109-
$reqheader = "CONTENT_LENGTH\x0".$contentlength."\x0"."SCGI\x0"."1\x0UNTRUSTED_CONNECTION\x0".($trusted ? "0" : "1")."\x0";
109+
$reqheader = "CONTENT_LENGTH\x0".$contentlength."\x0"."CONTENT_TYPE\x0"."text/xml\x0"."SCGI\x0"."1\x0UNTRUSTED_CONNECTION\x0".($trusted ? "0" : "1")."\x0";
110110
$tosend = strlen($reqheader).":{$reqheader},{$data}";
111111
@fwrite($socket,$tosend,strlen($tosend));
112112
$result = '';

0 commit comments

Comments
 (0)