Update HttpRequest.cs
This commit is contained in:
parent
a0b2c9f9b1
commit
03ae4d8308
1 changed files with 1 additions and 6 deletions
|
@ -24,7 +24,7 @@ public class HttpRequest
|
|||
/// <summary>
|
||||
/// Additional paramters in the path of the request.
|
||||
/// </summary>
|
||||
public NameValueCollection? Query;
|
||||
public NameValueCollection Query;
|
||||
|
||||
/// <summary>
|
||||
/// HTTP header fields included in the request.
|
||||
|
@ -46,11 +46,6 @@ public class HttpRequest
|
|||
/// </summary>
|
||||
public bool Valid => Method != HttpMethod.Any && Path.StartsWith('/');
|
||||
|
||||
internal HttpRequest()
|
||||
{
|
||||
Fields = new HttpFields();
|
||||
}
|
||||
|
||||
public HttpRequest(HttpMethod method, string path, HttpContent? content = null) : this(method, path, new HttpFields(), content)
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue