[Modify] Rename it
This commit is contained in:
parent
4aad50077f
commit
810741c3ba
@ -70,8 +70,8 @@ namespace WebSocketSharp.Net
|
|||||||
private Stream _inputStream;
|
private Stream _inputStream;
|
||||||
private Version _protocolVersion;
|
private Version _protocolVersion;
|
||||||
private NameValueCollection _queryString;
|
private NameValueCollection _queryString;
|
||||||
|
private string _rawUrl;
|
||||||
private Guid _requestTraceIdentifier;
|
private Guid _requestTraceIdentifier;
|
||||||
private string _uri;
|
|
||||||
private Uri _url;
|
private Uri _url;
|
||||||
private Uri _urlReferrer;
|
private Uri _urlReferrer;
|
||||||
private string[] _userLanguages;
|
private string[] _userLanguages;
|
||||||
@ -636,7 +636,7 @@ namespace WebSocketSharp.Net
|
|||||||
}
|
}
|
||||||
|
|
||||||
_url = HttpUtility.CreateRequestUrl (
|
_url = HttpUtility.CreateRequestUrl (
|
||||||
_uri,
|
_rawUrl,
|
||||||
hasHost ? host : UserHostAddress,
|
hasHost ? host : UserHostAddress,
|
||||||
IsWebSocketRequest,
|
IsWebSocketRequest,
|
||||||
IsSecureConnection
|
IsSecureConnection
|
||||||
@ -740,9 +740,9 @@ namespace WebSocketSharp.Net
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var uri = parts[1];
|
var target = parts[1];
|
||||||
if (uri.Length == 0) {
|
if (target.Length == 0) {
|
||||||
_context.ErrorMessage = "Invalid request line (uri)";
|
_context.ErrorMessage = "Invalid request line (target)";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -769,7 +769,7 @@ namespace WebSocketSharp.Net
|
|||||||
}
|
}
|
||||||
|
|
||||||
_httpMethod = method;
|
_httpMethod = method;
|
||||||
_uri = uri;
|
_rawUrl = target;
|
||||||
_protocolVersion = ver;
|
_protocolVersion = ver;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -853,7 +853,7 @@ namespace WebSocketSharp.Net
|
|||||||
public override string ToString ()
|
public override string ToString ()
|
||||||
{
|
{
|
||||||
var buff = new StringBuilder (64);
|
var buff = new StringBuilder (64);
|
||||||
buff.AppendFormat ("{0} {1} HTTP/{2}\r\n", _httpMethod, _uri, _protocolVersion);
|
buff.AppendFormat ("{0} {1} HTTP/{2}\r\n", _httpMethod, _rawUrl, _protocolVersion);
|
||||||
buff.Append (_headers.ToString ());
|
buff.Append (_headers.ToString ());
|
||||||
|
|
||||||
return buff.ToString ();
|
return buff.ToString ();
|
||||||
|
Loading…
Reference in New Issue
Block a user