Changeset 943


Ignore:
Timestamp:
Sep 28, 2006, 2:27:42 AM (15 years ago)
Author:
joshe
Message:

More miscellaneous UPnP fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/upnp.c

    r942 r943  
    3636#define MAPPING_CHECK_INTERVAL  900000 /* 15 minutes */
    3737#define HTTP_REQUEST_INTERVAL   500 /* half a second */
     38#define SOAP_METHOD_NOT_ALLOWED 405
    3839#define IGD_GENERIC_ERROR       500
    3940#define IGD_GENERIC_FAILED      501
     
    836837    }
    837838
     839    ret = NULL;
    838840    switch( dev->state )
    839841    {
     
    937939        case TR_OK:
    938940            code = tr_httpResponseCode( headers, hlen );
    939             if( TR_HTTP_STATUS_FAIL( code ) && !dev->soapretry )
     941            if( SOAP_METHOD_NOT_ALLOWED == code && !dev->soapretry )
    940942            {
    941943                dev->soapretry = 1;
     
    12291231        tr_httpAddBody( http,
    12301232"<s:Envelope"
    1231 "    xmlns:s=\"" SOAP_ENVELOPE "'\""
     1233"    xmlns:s=\"" SOAP_ENVELOPE "\""
    12321234"    s:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\">"
    12331235"  <s:Body>"
Note: See TracChangeset for help on using the changeset viewer.