diff --git a/HTTPServer/HTTPServerLib/HttpRequest.cs b/HTTPServer/HTTPServerLib/HttpRequest.cs index 6804a89..f2f3a4a 100644 --- a/HTTPServer/HTTPServerLib/HttpRequest.cs +++ b/HTTPServer/HTTPServerLib/HttpRequest.cs @@ -65,8 +65,8 @@ public HttpRequest(Stream stream) if (this.Method == "GET") { this.Body = GetRequestBody(rows); - var isUrlencoded = this.URL.Contains('?'); - if (isUrlencoded) this.Params = GetRequestParameters(URL.Split('?')[1]); + var isUrlencoded = first[1].Contains('?'); + if (isUrlencoded) this.Params = GetRequestParameters(first[1].Split('?')[1]); } //Request "POST"