Skip to content
Snippets Groups Projects
Commit 5f668190 authored by deuce's avatar deuce
Browse files

Only do internal redirects for internal redirect requests.

parent 581b308f
Branches
Tags
No related merge requests found
......@@ -2407,7 +2407,7 @@ void http_session_thread(void* arg)
/* At this point, if redirp is non-NULL then the headers have already been parsed */
if((session.http_ver<HTTP_1_0)||redirp!=NULL||parse_headers(&session)) {
if(check_request(&session)) {
if(session.req.send_location < MOVED_TEMP)
if(session.req.send_location < MOVED_TEMP || session.req.virtual_path[0]!='/')
respond(&session);
else {
snprintf(redir_req,MAX_REQUEST_LINE,"%s %s%s%s",methods[session.req.method]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment