mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 18:55:58 +08:00
cosmetics
This commit is contained in:
@@ -355,7 +355,7 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||
/// <param name="pMessage">Textual reason for the upgrade fail</param>
|
||||
private void FailUpgrade(HttpStatusCode pCode, string pMessage )
|
||||
{
|
||||
string handshakeResponse = string.Format(HandshakeDeclineText, (int)pCode, pMessage.Replace("\n", string.Empty).Replace("\r", string.Empty));
|
||||
string handshakeResponse = string.Format(HandshakeDeclineText, (int)pCode, pMessage.ReplaceLineEndings(string.Empty));
|
||||
byte[] bhandshakeResponse = Encoding.UTF8.GetBytes(handshakeResponse);
|
||||
_networkContext.Stream.Write(bhandshakeResponse, 0, bhandshakeResponse.Length);
|
||||
_networkContext.Stream.Flush();
|
||||
|
||||
@@ -1138,7 +1138,7 @@ namespace OpenSim.Framework
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
m_log.ErrorFormat($"[ASYNC REQUEST]: Request {verb} {requestUrl} callback failed with exception {e.Message}");
|
||||
m_log.Error($"[ASYNC REQUEST]: Request {verb} {requestUrl} callback failed with exception {e.Message}");
|
||||
}
|
||||
|
||||
}, null);
|
||||
|
||||
Reference in New Issue
Block a user