(rpc) possible fix for the new breakage caused by the shttpd upgrade in r6349

This commit is contained in:
Charles Kerr 2008-07-17 04:27:03 +00:00
parent f19dac5ea6
commit 6ffe3bcec5
1 changed files with 2 additions and 0 deletions

View File

@ -367,6 +367,8 @@ startServer( tr_rpc_server * server )
"/transmission/web", clutchDir );
}
argv[argc++] = NULL; /* shttpd_init() wants it null-terminated */
server->ctx = shttpd_init( argc, argv );
shttpd_register_uri( server->ctx, "/transmission/rpc", handle_rpc, server );
shttpd_register_uri( server->ctx, "/transmission/upload", handle_upload, server );