diff options
author | Lejo <Lejo_1@web.de> | 2020-07-30 00:16:21 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-29 23:16:21 +0200 |
commit | 715a123a33db7b0f191259ba68cbc9c565d0d4e8 (patch) | |
tree | 5925cc93ad339477d58dcea42bcf79b62e2ded5d /src/client | |
parent | f34abaedd2b9277c1862cd9b82ca3338747f104e (diff) | |
download | minetest-715a123a33db7b0f191259ba68cbc9c565d0d4e8.tar.gz minetest-715a123a33db7b0f191259ba68cbc9c565d0d4e8.tar.bz2 minetest-715a123a33db7b0f191259ba68cbc9c565d0d4e8.zip |
Add PUT and DELETE request + specific method value to HTTP API (#9909)
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/clientmedia.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/clientmedia.cpp b/src/client/clientmedia.cpp index 8cd3b6bcc..c4c08c05d 100644 --- a/src/client/clientmedia.cpp +++ b/src/client/clientmedia.cpp @@ -260,7 +260,8 @@ void ClientMediaDownloader::initialStep(Client *client) fetch_request.request_id = m_httpfetch_next_id; // == i fetch_request.timeout = m_httpfetch_timeout; fetch_request.connect_timeout = m_httpfetch_timeout; - fetch_request.post_data = required_hash_set; + fetch_request.method = HTTP_POST; + fetch_request.raw_data = required_hash_set; fetch_request.extra_headers.emplace_back( "Content-Type: application/octet-stream"); |