From 14049ee7c5880b9e33a3e295d19ed6b36edab567 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 23 Feb 2024 17:59:10 +0300 Subject: Allow nullfd input for HTTP POST method in curl class constructor --- libbutl/curl.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libbutl') 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); -- cgit v1.1