Changeset 10984 for trunk/libtransmission/rpc-server.c
- Timestamp:
- Jul 9, 2010, 2:11:58 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/rpc-server.c
r10396 r10984 609 609 || !strcmp( req->uri, "/" ) ) 610 610 { 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/" ); 616 612 send_simple_response( req, HTTP_MOVEPERM, NULL ); 617 tr_free( location );618 613 } 619 614 else if( !strncmp( req->uri, "/transmission/web/", 18 ) )
Note: See TracChangeset
for help on using the changeset viewer.