Ignore:
Timestamp:
Mar 19, 2010, 6:48:37 PM (12 years ago)
Author:
charles
Message:

(trunk libT) #2911 "requirement of javascript/transmission.js for webinterface unnecessary" -- implemented in trunk for 2.00

File:
1 edited

Legend:

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

    r9944 r10396  
    287287        const char *    mime_type;
    288288    } types[] = {
    289         /* these are just the ones we need for serving clutch... */
     289        /* these are the ones we need for serving the web client's files... */
    290290        { "css",  "text/css"                  },
    291291        { "gif",  "image/gif"                 },
     
    440440
    441441static void
    442 handle_clutch( struct evhttp_request * req,
    443                struct tr_rpc_server *  server )
    444 {
    445     const char * clutchDir = tr_getClutchDir( server->session );
     442handle_web_client( struct evhttp_request * req,
     443                   struct tr_rpc_server *  server )
     444{
     445    const char * webClientDir = tr_getWebClientDir( server->session );
    446446
    447447    assert( !strncmp( req->uri, "/transmission/web/", 18 ) );
    448448
    449     if( !clutchDir || !*clutchDir )
     449    if( !webClientDir || !*webClientDir )
    450450    {
    451451        send_simple_response( req, HTTP_NOTFOUND,
     
    475475        {
    476476            char * filename = tr_strdup_printf( "%s%s%s",
    477                                  clutchDir,
     477                                 webClientDir,
    478478                                 TR_PATH_DELIMITER_STR,
    479479                                 subpath && *subpath ? subpath : "index.html" );
     
    619619        else if( !strncmp( req->uri, "/transmission/web/", 18 ) )
    620620        {
    621             handle_clutch( req, server );
     621            handle_web_client( req, server );
    622622        }
    623623        else if( !strncmp( req->uri, "/transmission/upload", 20 ) )
Note: See TracChangeset for help on using the changeset viewer.