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

Fixed bug in last commit (MOVED_* was being overridden)

parent be412350
No related branches found
No related tags found
No related merge requests found
...@@ -1544,7 +1544,8 @@ static BOOL check_request(http_session_t * session) ...@@ -1544,7 +1544,8 @@ static BOOL check_request(http_session_t * session)
return(FALSE); return(FALSE);
} }
strcat(session->req.virtual_path,startup->index_file_name[i]); strcat(session->req.virtual_path,startup->index_file_name[i]);
session->req.send_location=MOVED_STAT; if(session->req.send_location != MOVED_PERM)
session->req.send_location=MOVED_STAT;
} }
if(strnicmp(path,root_dir,strlen(root_dir))) { if(strnicmp(path,root_dir,strlen(root_dir))) {
session->req.keep_alive=FALSE; session->req.keep_alive=FALSE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment