mirror of
https://github.com/transmission/transmission
synced 2024-12-26 01:27:28 +00:00
How about we actually put an <?xml?> tag in the xml we send?
This commit is contained in:
parent
6fd43ab22b
commit
bc366f8de1
1 changed files with 3 additions and 1 deletions
|
@ -1222,13 +1222,15 @@ soapRequest( int retry, const char * host, int port, const char * path,
|
|||
http = tr_httpClient( method, host, port, "%s", path );
|
||||
if( NULL != http )
|
||||
{
|
||||
tr_httpAddHeader( http, "Content-type", "text/xml" );
|
||||
tr_httpAddHeader( http, "Content-type",
|
||||
"text/xml; encoding=\"utf-8\"" );
|
||||
tr_httpAddHeader( http, "SOAPAction", action->action );
|
||||
if( retry )
|
||||
{
|
||||
tr_httpAddHeader( http, "Man", "\"" SOAP_ENVELOPE "\"" );
|
||||
}
|
||||
tr_httpAddBody( http,
|
||||
"<?xml version=\"1.0\" encoding=\"utf-8\" ?>"
|
||||
"<s:Envelope"
|
||||
" xmlns:s=\"" SOAP_ENVELOPE "\""
|
||||
" s:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\">"
|
||||
|
|
Loading…
Reference in a new issue