Hotfixed Chunked transfer encoding in Yggdrasil.
By using HTTP/1.0, we're disabling the support for the Chunked encoding on the server. This is a hotfix for #979, a proper parser implementation is still needed.
This commit is contained in:
parent
eaf3dcb9f7
commit
383fe0cc1e
@ -214,7 +214,7 @@ bool cAuthenticator::AuthWithYggdrasil(AString & a_UserName, const AString & a_S
|
|||||||
ReplaceString(ActualAddress, "%SERVERID%", a_ServerId);
|
ReplaceString(ActualAddress, "%SERVERID%", a_ServerId);
|
||||||
|
|
||||||
AString Request;
|
AString Request;
|
||||||
Request += "GET " + ActualAddress + " HTTP/1.1\r\n";
|
Request += "GET " + ActualAddress + " HTTP/1.0\r\n";
|
||||||
Request += "Host: " + m_Server + "\r\n";
|
Request += "Host: " + m_Server + "\r\n";
|
||||||
Request += "User-Agent: MCServer\r\n";
|
Request += "User-Agent: MCServer\r\n";
|
||||||
Request += "Connection: close\r\n";
|
Request += "Connection: close\r\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user