1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 09:13:06 +00:00

How about we actually put an <?xml?> tag in the xml we send?

This commit is contained in:
Josh Elsasser 2006-09-28 02:33:02 +00:00
parent 6fd43ab22b
commit bc366f8de1

View file

@ -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/\">"