2
0
Fork 0

[plugin_core] Fix possibly wrong mimetype in static action

personal/stbuehler/wip
Thomas Porzelt 2009-06-25 22:16:15 +02:00
parent af1c756cce
commit 1c7bc237df
1 changed files with 1 additions and 1 deletions

View File

@ -383,7 +383,7 @@ static handler_t core_handle_static(vrequest *vr, gpointer param, gpointer *cont
return HANDLER_GO_ON;
}
mime_str = mimetype_get(vr, vr->request.uri.path);
mime_str = mimetype_get(vr, vr->physical.path);
vr->response.http_status = 200;
if (mime_str)
http_header_overwrite(vr->response.headers, CONST_STR_LEN("Content-Type"), GSTR_LEN(mime_str));