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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Neeserg Parajuli
comp30023-2018-project-1
Commits
485cafea
Commit
485cafea
authored
Apr 19, 2018
by
Neeserg Parajuli
Browse files
Options
Downloads
Patches
Plain Diff
changed few unwanted changes
parent
4222cdb1
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
GETheader.h
+1
-1
1 addition, 1 deletion
GETheader.h
form_response.c
+1
-1
1 addition, 1 deletion
form_response.c
server
+0
-0
0 additions, 0 deletions
server
with
2 additions
and
2 deletions
GETheader.h
+
1
−
1
View file @
485cafea
#ifndef GETheader
#define GETheader
#define BADREQUEST 40
4
#define BADREQUEST 40
0
#define FILENOTFOUND 404
#define PATHLEN 128
#define SUCCESS 200
...
...
This diff is collapsed.
Click to expand it.
form_response.c
+
1
−
1
View file @
485cafea
...
...
@@ -58,7 +58,7 @@ int sendresponse(int sockfd, struct GET_header* header){
if
(
fp
==
NULL
)
{
strcpy
(
resphead
.
httpversion
,
header
->
httpversion
);
resphead
.
status
=
BADREQUEST
;
resphead
.
status
=
FILENOTFOUND
;
formresponse
(
buffer
,
&
resphead
);
return
send
(
sockfd
,
buffer
,
strlen
(
buffer
),
0
);
}
// sends the 404 response
...
...
This diff is collapsed.
Click to expand it.
server
+
0
−
0
View file @
485cafea
No preview for this file type
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