diff options
author | Safwat Halaby <SafwatHalaby@users.noreply.github.com> | 2015-09-25 12:49:18 +0200 |
---|---|---|
committer | Safwat Halaby <SafwatHalaby@users.noreply.github.com> | 2015-09-25 14:11:39 +0200 |
commit | f1270cb7a1e70b29579380ad30d3fa5c4d41ee93 (patch) | |
tree | 5ce66d38d71c315ef7c91c0f55d7175bbe5db628 /src/Protocol/MojangAPI.cpp | |
parent | Merge pull request #2478 from cuberite/FixArmBuild (diff) | |
download | cuberite-f1270cb7a1e70b29579380ad30d3fa5c4d41ee93.tar cuberite-f1270cb7a1e70b29579380ad30d3fa5c4d41ee93.tar.gz cuberite-f1270cb7a1e70b29579380ad30d3fa5c4d41ee93.tar.bz2 cuberite-f1270cb7a1e70b29579380ad30d3fa5c4d41ee93.tar.lz cuberite-f1270cb7a1e70b29579380ad30d3fa5c4d41ee93.tar.xz cuberite-f1270cb7a1e70b29579380ad30d3fa5c4d41ee93.tar.zst cuberite-f1270cb7a1e70b29579380ad30d3fa5c4d41ee93.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Protocol/MojangAPI.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Protocol/MojangAPI.cpp b/src/Protocol/MojangAPI.cpp index f3f9baf25..73b3bd8c0 100644 --- a/src/Protocol/MojangAPI.cpp +++ b/src/Protocol/MojangAPI.cpp @@ -688,7 +688,7 @@ void cMojangAPI::QueryNamesToUUIDs(AStringVector & a_NamesToQuery) AString Request; Request += "POST " + m_NameToUUIDAddress + " HTTP/1.0\r\n"; // We need to use HTTP 1.0 because we don't handle Chunked transfer encoding Request += "Host: " + m_NameToUUIDServer + "\r\n"; - Request += "User-Agent: MCServer\r\n"; + Request += "User-Agent: Cuberite\r\n"; Request += "Connection: close\r\n"; Request += "Content-Type: application/json\r\n"; Request += Printf("Content-Length: %u\r\n", static_cast<unsigned>(RequestBody.length())); @@ -802,7 +802,7 @@ void cMojangAPI::QueryUUIDToProfile(const AString & a_UUID) AString Request; Request += "GET " + Address + " HTTP/1.0\r\n"; // We need to use HTTP 1.0 because we don't handle Chunked transfer encoding Request += "Host: " + m_UUIDToProfileServer + "\r\n"; - Request += "User-Agent: MCServer\r\n"; + Request += "User-Agent: Cuberite\r\n"; Request += "Connection: close\r\n"; Request += "Content-Length: 0\r\n"; Request += "\r\n"; |