Browse Source

In `network::requestDownload()`, set default `progress` argument to NULL.

tags/v2.6.1
Andrew Belt 5 months ago
parent
commit
8b249888fd
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      include/network.hpp

+ 1
- 1
include/network.hpp View File

@@ -29,7 +29,7 @@ json_t* requestJson(Method method, const std::string& url, json_t* dataJ = NULL,
/** Returns true if downloaded successfully.
If `progress` is non-NULL, the value is updated from 0 to 1 while downloading.
*/
bool requestDownload(const std::string& url, const std::string& filename, float* progress, const CookieMap& cookies = {});
bool requestDownload(const std::string& url, const std::string& filename, float* progress = NULL, const CookieMap& cookies = {});
/** URL-encodes a string. */
std::string encodeUrl(const std::string& s);
/** Returns the path portion of the URL.


Loading…
Cancel
Save