Update HttpRequest.cs
This commit is contained in:
parent
38251d1328
commit
4903b6320a
1 changed files with 1 additions and 2 deletions
|
@ -100,8 +100,7 @@ public sealed class HttpRequest
|
|||
throw new RequestParseException("Invalid initial header");
|
||||
|
||||
//Method
|
||||
HttpMethod method;
|
||||
if (!Enum.TryParse(parts[0], true, out method))
|
||||
if (!Enum.TryParse(parts[0], true, out HttpMethod method))
|
||||
throw new RequestParseException("Unknown HTTP method");
|
||||
Method = method;
|
||||
|
||||
|
|
Loading…
Reference in a new issue