refactor: Update Unity to 2022.3.62
This commit is contained in:
@@ -71,8 +71,7 @@ namespace Cryville.Common.Network.Http11 {
|
||||
headers["Host"] = _baseUri.Host;
|
||||
byte[] payload = null;
|
||||
if (body != null) {
|
||||
if (encoding == null)
|
||||
encoding = Encoding.UTF8;
|
||||
encoding ??= Encoding.UTF8;
|
||||
payload = encoding.GetBytes(body);
|
||||
headers.Add("Content-Encoding", encoding.EncodingName);
|
||||
headers.Add("Content-Length", payload.Length.ToString(CultureInfo.InvariantCulture));
|
||||
|
Reference in New Issue
Block a user