Skip to content
Snippets Groups Projects
Commit 3ad00444 authored by Miley Li's avatar Miley Li
Browse files

Update server.c

parent 7d609f55
No related branches found
No related tags found
No related merge requests found
......@@ -132,12 +132,6 @@ void* httpRequest(void* data)
/*
tmp_ptr1=strpbrk(req,"/"); // Breaks the line and processes the string which has "/".
tmp_ptr2=strtok(tmp_ptr1," "); // Removes blankspces if any
filePath=strpbrk(tmp_ptr2,"/");// Copying the file loaction that the client want to access and break at / and copy after that
strcpy(tmp_ptr3,tmp_ptr2);//coping tmp_ptr2 value to tmp_ptr3
*/
// When GET request sends "/" we map to "/index.html"
if (strcmp(filePath,"/")==0){
strcpy(filePath,strcat(doc_root,"/index.html"));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment