mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
http: Set a more useful user agent.
This commit is contained in:
1 parent
e2e1c677cb
commit
a35b21a5d7
7 files changed
+19
-4
No files matched your search
@@ -20,6 +20,7 @@
|
||||
#include "Common/Common.h"
|
||||
#include "Common/Log.h"
|
||||
#include "Common/StringUtils.h"
|
||||
#include "Core/Config.h"
|
||||
#include "Core/FileLoaders/HTTPFileLoader.h"
|
||||
|
||||
HTTPFileLoader::HTTPFileLoader(const std::string &filename)
|
||||
@@ -28,6 +29,8 @@ HTTPFileLoader::HTTPFileLoader(const std::string &filename)
|
||||
|
||||
void HTTPFileLoader::Prepare() {
|
||||
std::call_once(preparedFlag_, [this](){
|
||||
client_.SetUserAgent(StringFromFormat("PPSSPP/%s", PPSSPP_GIT_VERSION));
|
||||
|
||||
std::vector<std::string> responseHeaders;
|
||||
Url resourceURL = url_;
|
||||
int redirectsLeft = 20;
|
||||
|
||||
Reference in new issue
Block a user