diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-06-01 22:58:46 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-06-02 12:44:55 +0200 |
commit | 3439d1fdd09ad5273b5806cb8e876861f89c437a (patch) | |
tree | 425caca2641780b7c29e339aa38ec0e17fc7c552 /lib/mqtt.c | |
parent | cba70628aefbfee68b329f199eace7ae950e2286 (diff) | |
download | curl-3439d1fdd09ad5273b5806cb8e876861f89c437a.tar.gz |
urldata: let the HTTP method be in the set.* structbagder/http-method-change
When the method is updated inside libcurl we must still not change the
method as set by the user as then repeated transfers with that same
handle might not execute the same operation anymore!
This fixes the libcurl part of #5462
Test 1633 added to verify.
Diffstat (limited to 'lib/mqtt.c')
-rw-r--r-- | lib/mqtt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mqtt.c b/lib/mqtt.c index 43a3b6e53..d09aab4ee 100644 --- a/lib/mqtt.c +++ b/lib/mqtt.c @@ -591,7 +591,7 @@ static CURLcode mqtt_doing(struct connectdata *conn, bool *done) if(result) break; - if(conn->data->set.httpreq == HTTPREQ_POST) { + if(conn->data->state.httpreq == HTTPREQ_POST) { result = mqtt_publish(conn); if(!result) { result = mqtt_disconnect(conn); |