Skip to content
Snippets Groups Projects
Commit 485cafea authored by Neeserg Parajuli's avatar Neeserg Parajuli
Browse files

changed few unwanted changes

parent 4222cdb1
Branches
No related tags found
No related merge requests found
#ifndef GETheader
#define GETheader
#define BADREQUEST 404
#define BADREQUEST 400
#define FILENOTFOUND 404
#define PATHLEN 128
#define SUCCESS 200
......
......@@ -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
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment