Changeset 10985
- Timestamp:
- Jul 9, 2010, 3:22:23 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0x/libtransmission/rpc-server.c
r10396 r10985 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 ); 611 const char * location = "transmission/web/"; 615 612 evhttp_add_header( req->output_headers, "Location", location ); 616 613 send_simple_response( req, HTTP_MOVEPERM, NULL ); 617 tr_free( location );618 614 } 619 615 else if( !strncmp( req->uri, "/transmission/web/", 18 ) )
Note: See TracChangeset
for help on using the changeset viewer.