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

Change comparison to assignment.

parent a31b08b8
No related branches found
No related tags found
No related merge requests found
...@@ -1517,12 +1517,12 @@ static BOOL check_request(http_session_t * session) ...@@ -1517,12 +1517,12 @@ static BOOL check_request(http_session_t * session)
if(isdir(path)) { if(isdir(path)) {
last_ch=*lastchar(path); last_ch=*lastchar(path);
if(!IS_PATH_DELIM(last_ch)) { if(!IS_PATH_DELIM(last_ch)) {
session->req.send_location==MOVED_PERM; session->req.send_location=MOVED_PERM;
strcat(path,"/"); strcat(path,"/");
} }
last_ch=*lastchar(session->req.virtual_path); last_ch=*lastchar(session->req.virtual_path);
if(!IS_PATH_DELIM(last_ch)) { if(!IS_PATH_DELIM(last_ch)) {
session->req.send_location==MOVED_PERM; session->req.send_location=MOVED_PERM;
strcat(session->req.virtual_path,"/"); strcat(session->req.virtual_path,"/");
} }
last_slash=find_last_slash(path); last_slash=find_last_slash(path);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment