Ignore:
Timestamp:
Jul 9, 2010, 2:11:58 PM (13 years ago)
Author:
charles
Message:

(trunk libT) #3411 "make https behave nicer when using stunnel" -- experimental fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/rpc-server.c

    r10396 r10984  
    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 );
    615             evhttp_add_header( req->output_headers, "Location", location );
     611            evhttp_add_header( req->output_headers, "Location", "/transmission/web/" );
    616612            send_simple_response( req, HTTP_MOVEPERM, NULL );
    617             tr_free( location );
    618613        }
    619614        else if( !strncmp( req->uri, "/transmission/web/", 18 ) )
Note: See TracChangeset for help on using the changeset viewer.