Ignore:
Timestamp:
Jul 9, 2010, 3:22:23 PM (12 years ago)
Author:
charles
Message:

(2.0x libT) #3411 "Make HTTPS behave nicer when using stunnel" -- fixed by backporting r10984

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0x/libtransmission/rpc-server.c

    r10396 r10985  
    609609               || !strcmp( req->uri, "/" ) )
    610610        {
    611             const char * protocol = "http";
    612             const char * host = evhttp_find_header( req->input_headers, "Host" );
    613             const char * uri = "transmission/web/";
    614             char * location = tr_strdup_printf( "%s://%s/%s", protocol, host, uri );
     611            const char * location = "transmission/web/";
    615612            evhttp_add_header( req->output_headers, "Location", location );
    616613            send_simple_response( req, HTTP_MOVEPERM, NULL );
    617             tr_free( location );
    618614        }
    619615        else if( !strncmp( req->uri, "/transmission/web/", 18 ) )
Note: See TracChangeset for help on using the changeset viewer.