Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
comp30023-2018-project-1
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Miley Li
comp30023-2018-project-1
Commits
3ad00444
Commit
3ad00444
authored
7 years ago
by
Miley Li
Browse files
Options
Downloads
Patches
Plain Diff
Update server.c
parent
7d609f55
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
server.c
+1
-7
1 addition, 7 deletions
server.c
with
1 addition
and
7 deletions
server.c
+
1
−
7
View file @
3ad00444
...
...
@@ -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"
));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment