Skip to content
Snippets Groups Projects
Commit 12bab610 authored by Roman Tsisyk's avatar Roman Tsisyk
Browse files

curl: fix POST request with empty body

CURLOPT_POST option without explicitly set CURLOPT_POSTFIELDS caused
libcurl to use some internal implementation of CURLOPT_READFUNCTION,
which reads body from stdin by default.

Provided test case only covers argument handling because there is no
repetable way to check reads from stdin from our test suite.

Closes #2530
parent f728e8ee
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment