mirror of
https://gitea.sffnetwork.ru/Kolyah35/minecraft-pe-0.6.1.git
synced 2026-11-22 02:19:45 +00:00
Make chat show full history when opened
This commit is contained in:
parent
76839dfbaa
commit
4e179a47b6
4 changed files with 96 additions and 19 deletions
|
|
@ -319,7 +319,7 @@ bool download(const std::string& url, std::vector<unsigned char>& outBody) {
|
|||
if (status != 200) {
|
||||
std::string bodySnippet;
|
||||
if (!outBody.empty()) {
|
||||
size_t len = std::min(outBody.size(), (size_t)1024);
|
||||
size_t len = outBody.size() < 1024 ? outBody.size() : 1024;
|
||||
bodySnippet.assign(outBody.begin(), outBody.begin() + len);
|
||||
}
|
||||
LOGW("[HttpClient] HTTP status %d for %s\n", status, currentUrl.c_str());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue