From 3439d1fdd09ad5273b5806cb8e876861f89c437a Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 1 Jun 2020 22:58:46 +0200 Subject: urldata: let the HTTP method be in the set.* struct 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. --- lib/mqtt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/mqtt.c') 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); -- cgit v1.2.1