summaryrefslogtreecommitdiff
path: root/lib/imap.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2022-11-11 10:57:04 +0100
committerDaniel Stenberg <daniel@haxx.se>2022-11-11 15:56:05 +0100
commitbf12c2bed692a1cc62b8a3a76eb61e15d50cc74f (patch)
tree7ef05ab4afd3faac00c504ae6680562d3b5e4d4c /lib/imap.c
parentdafdb20a26d0c890e83dea61a104b75408481ebd (diff)
downloadcurl-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.c2
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;
}