aboutsummaryrefslogtreecommitdiffstats
path: root/src/tipideed/tipideed.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tipideed/tipideed.c')
-rw-r--r--src/tipideed/tipideed.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/tipideed/tipideed.c b/src/tipideed/tipideed.c
index 4c226cb..c3956ed 100644
--- a/src/tipideed/tipideed.c
+++ b/src/tipideed/tipideed.c
@@ -475,8 +475,11 @@ int main (int argc, char const *const *argv, char const *const *envp)
else tcoding = TIPIDEE_TRANSFERCODING_NONE ;
}
- if (tcoding != TIPIDEE_TRANSFERCODING_NONE && rql.m != TIPIDEE_METHOD_POST)
- eexit_400(&rql, "only POST requests can have an entity body") ;
+ if (tcoding != TIPIDEE_TRANSFERCODING_NONE
+ && rql.m != TIPIDEE_METHOD_POST
+ && rql.m != TIPIDEE_METHOD_PUT
+ && rql.m != TIPIDEE_METHOD_PATCH)
+ eexit_400(&rql, "Only POST, PUT and PATCH requests can have an entity body.") ;
switch (rql.m)
{