diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2024-02-23 17:59:10 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2024-02-26 11:52:12 +0300 |
commit | 14049ee7c5880b9e33a3e295d19ed6b36edab567 (patch) | |
tree | 05ba211496e3ae56033fe569ab855529aa6f8008 /tests/curl/driver.cxx | |
parent | 4a3ec1c7e77e3da09d39ab57048bc6b1a39fb003 (diff) |
Allow nullfd input for HTTP POST method in curl class constructor
Diffstat (limited to 'tests/curl/driver.cxx')
-rw-r--r-- | tests/curl/driver.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
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 |