commit ee10f83391cea10260c7632eca3f8d1beb918741
parent 102cf09cc580066c2382abdc627739e5d4437071
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Tue, 27 Jun 2017 21:37:18 +0200
send status code for method not allowed if not GET or HEAD
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/quark.c b/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 */