Minor UPnP compatibility fixes.
This commit is contained in:
parent
13b3da143e
commit
ab661c6dc9
|
@ -1228,10 +1228,10 @@ soapRequest( int retry, const char * host, int port, const char * path,
|
||||||
}
|
}
|
||||||
tr_httpAddBody( http,
|
tr_httpAddBody( http,
|
||||||
"<s:Envelope"
|
"<s:Envelope"
|
||||||
" xmlns:s='" SOAP_ENVELOPE "'"
|
" xmlns:s=\"" SOAP_ENVELOPE "'\""
|
||||||
" s:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'>"
|
" s:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\">"
|
||||||
" <s:Body>"
|
" <s:Body>"
|
||||||
" <u:%s xmlns:u='" UPNP_SERVICE_TYPE "'>", action->name );
|
" <u:%s xmlns:u=\"" UPNP_SERVICE_TYPE "\">", action->name );
|
||||||
|
|
||||||
va_start( ap, action );
|
va_start( ap, action );
|
||||||
do
|
do
|
||||||
|
@ -1269,7 +1269,8 @@ static void
|
||||||
actionSetup( tr_upnp_action_t * action, const char * name, int prealloc )
|
actionSetup( tr_upnp_action_t * action, const char * name, int prealloc )
|
||||||
{
|
{
|
||||||
action->name = strdup( name );
|
action->name = strdup( name );
|
||||||
action->action = joinstrs( UPNP_SERVICE_TYPE, "#", name );
|
action->action = NULL;
|
||||||
|
asprintf( &action->action, "\"%s#%s\"", UPNP_SERVICE_TYPE, name );
|
||||||
assert( NULL == action->args );
|
assert( NULL == action->args );
|
||||||
action->args = malloc( sizeof( *action->args ) * prealloc );
|
action->args = malloc( sizeof( *action->args ) * prealloc );
|
||||||
memset( action->args, 0, sizeof( *action->args ) * prealloc );
|
memset( action->args, 0, sizeof( *action->args ) * prealloc );
|
||||||
|
|
Loading…
Reference in New Issue