mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-26 11:48:36 +01:00
Set MIME type "correctly" (at least for retro purposes) for POSTs
This commit is contained in:
1 parent
601e767e3b
commit
3bc2aaf7ca
2 files changed
+17
-9
No files matched your search
@@ -105,7 +105,8 @@ enum class RequestMethod {
|
||||
// Really an asynchronous request.
|
||||
class Download {
|
||||
public:
|
||||
Download(RequestMethod method, const std::string &url, const std::string &postData, const Path &outfile);
|
||||
// postMime should often be "application/x-www-form-urlencoded";
|
||||
Download(RequestMethod method, const std::string &url, const std::string &postData, const std::string &postMime, const Path &outfile);
|
||||
~Download();
|
||||
|
||||
void Start();
|
||||
@@ -172,6 +173,7 @@ private:
|
||||
Path outfile_;
|
||||
std::thread thread_;
|
||||
const char *acceptMime_ = "*/*";
|
||||
std::string postMime_;
|
||||
int resultCode_ = 0;
|
||||
bool completed_ = false;
|
||||
bool failed_ = false;
|
||||
|
||||
Reference in new issue
Block a user