Changeset 942


Ignore:
Timestamp:
Sep 28, 2006, 1:40:51 AM (15 years ago)
Author:
joshe
Message:

Minor UPnP compatibility fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/upnp.c

    r939 r942  
    12291229        tr_httpAddBody( http,
    12301230"<s:Envelope"
    1231 "    xmlns:s='" SOAP_ENVELOPE "'"
    1232 "    s:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'>"
     1231"    xmlns:s=\"" SOAP_ENVELOPE "'\""
     1232"    s:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\">"
    12331233"  <s:Body>"
    1234 "    <u:%s xmlns:u='" UPNP_SERVICE_TYPE "'>", action->name );
     1234"    <u:%s xmlns:u=\"" UPNP_SERVICE_TYPE "\">", action->name );
    12351235
    12361236        va_start( ap, action );
     
    12701270{
    12711271    action->name = strdup( name );
    1272     action->action = joinstrs( UPNP_SERVICE_TYPE, "#", name );
     1272    action->action = NULL;
     1273    asprintf( &action->action, "\"%s#%s\"", UPNP_SERVICE_TYPE, name );
    12731274    assert( NULL == action->args );
    12741275    action->args = malloc( sizeof( *action->args ) * prealloc );
Note: See TracChangeset for help on using the changeset viewer.