mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-28 16:53:40 +01:00
Allow specifying content-type for posts instead of hardcoding.
This commit is contained in:
1 parent
2de510432d
commit
31a6cecef9
2 files changed
+2
-1
No files matched your search
@@ -604,8 +604,8 @@ std::shared_ptr<Download> Downloader::StartDownloadWithCallback(
|
||||
std::shared_ptr<Download> Downloader::AsyncPostWithCallback(
|
||||
const std::string &url,
|
||||
const std::string &postData,
|
||||
const std::string &postMime,
|
||||
std::function<void(Download &)> callback) {
|
||||
std::string postMime = "application/x-www-form-urlencoded";
|
||||
std::shared_ptr<Download> dl(new Download(RequestMethod::POST, url, postData, postMime, Path()));
|
||||
dl->SetCallback(callback);
|
||||
newDownloads_.push_back(dl);
|
||||
|
||||
@@ -202,6 +202,7 @@ public:
|
||||
std::shared_ptr<Download> AsyncPostWithCallback(
|
||||
const std::string &url,
|
||||
const std::string &postData,
|
||||
const std::string &postMime, // Use postMime = "application/x-www-form-urlencoded" for standard form-style posts, such as used by retroachievements.
|
||||
std::function<void(Download &)> callback);
|
||||
|
||||
// Drops finished downloads from the list.
|
||||
|
||||
Reference in new issue
Block a user