Rework code flow in httpd_gen_cb()

This commit is contained in:
Julien BLACHE 2010-01-29 22:33:32 +01:00
parent 78275ae432
commit 2c6ceac486

View File

@ -812,15 +812,13 @@ httpd_gen_cb(struct evhttp_request *req, void *arg)
{
rsp_request(req);
free(uri);
return;
goto out;
}
else if (daap_is_request(req, uri))
{
daap_request(req);
free(uri);
return;
goto out;
}
DPRINTF(E_DBG, L_HTTPD, "HTTP request: %s\n", uri);
@ -828,6 +826,7 @@ httpd_gen_cb(struct evhttp_request *req, void *arg)
/* Serve web interface files */
serve_file(req, uri);
out:
free(uri);
}