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 --- tests/curl/driver.cxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/curl/driver.cxx') diff --git a/tests/curl/driver.cxx b/tests/curl/driver.cxx index 72faf52..4cf1815 100644 --- a/tests/curl/driver.cxx +++ b/tests/curl/driver.cxx @@ -104,6 +104,13 @@ http () c.out.close (); assert (!c.wait ()); } + + // POST from /dev/null. + // + { + curl c (p, nullfd, 1, 2, curl::post, u + "/bogus"); + assert (!c.wait ()); + } } int -- cgit v1.1