send status code for method not allowed if not GET or HEAD
This commit is contained in:
parent
102cf09cc5
commit
ee10f83391
1 changed files with 1 additions and 1 deletions
2
quark.c
2
quark.c
|
@ -215,7 +215,7 @@ getrequest(int fd, struct request *r)
|
|||
}
|
||||
}
|
||||
if (i == NUM_REQ_METHODS) {
|
||||
return sendstatus(fd, S_BAD_REQUEST);
|
||||
return sendstatus(fd, S_METHOD_NOT_ALLOWED);
|
||||
}
|
||||
|
||||
/* a single space must follow the method */
|
||||
|
|
Loading…
Reference in a new issue