summaryrefslogtreecommitdiffstats
path: root/src/Protocol/MojangAPI.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-09-25 13:12:55 +0200
committerMattes D <github@xoft.cz>2015-09-25 13:12:55 +0200
commit7f618199710a4159973d34b7b872fe9d8b7010b6 (patch)
tree110bd8fd9ee0f6f5b830694b5d7cc37257666988 /src/Protocol/MojangAPI.cpp
parentMerge pull request #2478 from cuberite/FixArmBuild (diff)
parentNamechange to Cuberite (diff)
downloadcuberite-7f618199710a4159973d34b7b872fe9d8b7010b6.tar
cuberite-7f618199710a4159973d34b7b872fe9d8b7010b6.tar.gz
cuberite-7f618199710a4159973d34b7b872fe9d8b7010b6.tar.bz2
cuberite-7f618199710a4159973d34b7b872fe9d8b7010b6.tar.lz
cuberite-7f618199710a4159973d34b7b872fe9d8b7010b6.tar.xz
cuberite-7f618199710a4159973d34b7b872fe9d8b7010b6.tar.zst
cuberite-7f618199710a4159973d34b7b872fe9d8b7010b6.zip
Diffstat (limited to 'src/Protocol/MojangAPI.cpp')
-rw-r--r--src/Protocol/MojangAPI.cpp4
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";