2
0
Fork 0

revert previous commit. it was stupid.

personal/stbuehler/wip
Thomas Porzelt 2009-01-12 01:02:39 +01:00
parent 9186488bbf
commit f0c66a793c
1 changed files with 7 additions and 5 deletions

View File

@ -159,6 +159,13 @@ static handler_t core_handle_docroot(vrequest *vr, gpointer param, gpointer *con
VR_DEBUG(vr, "docroot: %s", vr->physical.doc_root->str);
/* build physical path: docroot + uri.path */
g_string_truncate(vr->physical.path, 0);
g_string_append_len(vr->physical.path, GSTR_LEN(vr->physical.doc_root));
g_string_append_len(vr->physical.path, GSTR_LEN(vr->request.uri.path));
VR_DEBUG(vr, "physical path: %s", vr->physical.path->str);
return HANDLER_GO_ON;
}
@ -182,11 +189,6 @@ static handler_t core_handle_static(vrequest *vr, gpointer param, gpointer *cont
UNUSED(param);
UNUSED(context);
/* build physical path: docroot + uri.path */
g_string_truncate(vr->physical.path, 0);
g_string_append_len(vr->physical.path, GSTR_LEN(vr->physical.doc_root));
g_string_append_len(vr->physical.path, GSTR_LEN(vr->request.uri.path));
if (vr->physical.path->len == 0) return HANDLER_GO_ON;
if (!vrequest_handle_direct(vr)) return HANDLER_GO_ON;