mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-06 11:28:32 +02:00
cloud-setup: actually pass the HTTP method in nm_http_client_poll_req()
https://bugzilla.redhat.com/show_bug.cgi?id=2179718 Fixes:8b7e12c2d6('cloud-setup/ec2: start with requesting a IMDSv2 token') Fixes:cd74d75002('cloud-setup: make nm_http_client_req() accept a method argument') (cherry picked from commitf07da04cd9) (cherry picked from commitd787c0c59d) (cherry picked from commit6abbdaaa64) (cherry picked from commit16dc184845) (cherry picked from commit35e76b509b)
This commit is contained in:
parent
ae3ec36462
commit
b369cdc5f2
1 changed files with 2 additions and 1 deletions
|
|
@ -290,7 +290,7 @@ nm_http_client_req(NMHttpClient * self,
|
||||||
|
|
||||||
nmcs_wait_for_objects_register(edata->task);
|
nmcs_wait_for_objects_register(edata->task);
|
||||||
|
|
||||||
_LOG2D(edata, "start get ...");
|
_LOG2D(edata, "start %s ...", http_method ?: "get");
|
||||||
|
|
||||||
edata->ehandle = curl_easy_init();
|
edata->ehandle = curl_easy_init();
|
||||||
if (!edata->ehandle) {
|
if (!edata->ehandle) {
|
||||||
|
|
@ -554,6 +554,7 @@ nm_http_client_poll_req(NMHttpClient * self,
|
||||||
.check_user_data = check_user_data,
|
.check_user_data = check_user_data,
|
||||||
.response_code = -1,
|
.response_code = -1,
|
||||||
.http_headers = NULL,
|
.http_headers = NULL,
|
||||||
|
.http_method = http_method,
|
||||||
};
|
};
|
||||||
|
|
||||||
if (http_headers) {
|
if (http_headers) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue