summaryrefslogtreecommitdiffstats
path: root/src/Protocol/MojangAPI.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-09-25 10:14:17 +0200
committerMattes D <github@xoft.cz>2015-09-25 10:14:17 +0200
commit82d9ac1e1c95eb3421e062be2334308ee3837560 (patch)
tree110bd8fd9ee0f6f5b830694b5d7cc37257666988 /src/Protocol/MojangAPI.cpp
parentMerge pull request #2478 from cuberite/FixArmBuild (diff)
downloadcuberite-82d9ac1e1c95eb3421e062be2334308ee3837560.tar
cuberite-82d9ac1e1c95eb3421e062be2334308ee3837560.tar.gz
cuberite-82d9ac1e1c95eb3421e062be2334308ee3837560.tar.bz2
cuberite-82d9ac1e1c95eb3421e062be2334308ee3837560.tar.lz
cuberite-82d9ac1e1c95eb3421e062be2334308ee3837560.tar.xz
cuberite-82d9ac1e1c95eb3421e062be2334308ee3837560.tar.zst
cuberite-82d9ac1e1c95eb3421e062be2334308ee3837560.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";