aboutsummaryrefslogtreecommitdiff
path: root/libbutl/curl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbutl/curl.cxx')
-rw-r--r--libbutl/curl.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/libbutl/curl.cxx b/libbutl/curl.cxx
index 92baa4c..0577391 100644
--- a/libbutl/curl.cxx
+++ b/libbutl/curl.cxx
@@ -21,10 +21,9 @@ namespace butl
{
case ftp_put:
throw invalid_argument ("no input specified for PUT method");
- case http_post:
- throw invalid_argument ("no input specified for POST method");
case ftp_get:
case http_get:
+ case http_post:
{
d.pipe.in = fdopen_null (); // /dev/null
return pipe (d.pipe);