uhttpd: recognize PATCH, PUT and DELETE HTTP methods
[oweals/uhttpd.git] / client.c
index 04d26f11af9a0c8501b66c2dcebb48d2ab04c5e1..3c1aa9daf783a587cffc9be44241de396d2d9b77 100644 (file)
--- a/client.c
+++ b/client.c
@@ -40,6 +40,9 @@ const char * const http_methods[] = {
        [UH_HTTP_MSG_POST] = "POST",
        [UH_HTTP_MSG_HEAD] = "HEAD",
        [UH_HTTP_MSG_OPTIONS] = "OPTIONS",
+       [UH_HTTP_MSG_PUT] = "PUT",
+       [UH_HTTP_MSG_PATCH] = "PATCH",
+       [UH_HTTP_MSG_DELETE] = "DELETE",
 };
 
 void uh_http_header(struct client *cl, int code, const char *summary)