diff options
author | Daniel Stenberg <daniel@haxx.se> | 2022-11-11 10:57:04 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2022-11-11 15:56:05 +0100 |
commit | bf12c2bed692a1cc62b8a3a76eb61e15d50cc74f (patch) | |
tree | 7ef05ab4afd3faac00c504ae6680562d3b5e4d4c /lib/imap.c | |
parent | dafdb20a26d0c890e83dea61a104b75408481ebd (diff) | |
download | curl-bf12c2bed692a1cc62b8a3a76eb61e15d50cc74f.tar.gz |
lib: remove bad set.opt_no_body assignments
This struct field MUST remain what the application set it to, so that
handle reuse and handle duplication work.
Instead, the request state bit 'no_body' is introduced for code flows
that need to change this in run-time.
Closes #9888
Diffstat (limited to 'lib/imap.c')
-rw-r--r-- | lib/imap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/imap.c b/lib/imap.c index 1eb105435..49c5c49d7 100644 --- a/lib/imap.c +++ b/lib/imap.c @@ -1568,7 +1568,7 @@ static CURLcode imap_perform(struct Curl_easy *data, bool *connected, DEBUGF(infof(data, "DO phase starts")); - if(data->set.opt_no_body) { + if(data->req.no_body) { /* Requested no body means no transfer */ imap->transfer = PPTRANSFER_INFO; } |