Changeset 12930


Ignore:
Timestamp:
Sep 27, 2011, 10:34:52 PM (11 years ago)
Author:
livings124
Message:

#4524 Redirects with https are broken

File:
1 edited

Legend:

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

    r12552 r12930  
    629629        else if( strncmp( req->uri, server->url, strlen( server->url ) ) )
    630630        {
    631             const char * protocol = "http";
    632             const char * host = evhttp_find_header( req->input_headers, "Host" );
    633             char * location = tr_strdup_printf( "%s://%s%sweb/", protocol, host, server->url );
     631            char * location = tr_strdup_printf( "%sweb/", server->url );
    634632            evhttp_add_header( req->output_headers, "Location", location );
    635633            send_simple_response( req, HTTP_MOVEPERM, NULL );
Note: See TracChangeset for help on using the changeset viewer.