From df09545656c6ca82f41b95fb024e85fdea5b6433 Mon Sep 17 00:00:00 2001 From: zhao kang <5862784@qq.com> Date: Sat, 3 Nov 2018 14:50:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86HttpRequest.cs?= =?UTF-8?q?=E4=B8=ADHttpRequest(Stream=20stream)=20GET=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=E7=9A=84=E5=8F=82=E6=95=B0=E8=8E=B7=E5=8F=96=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HTTPServer/HTTPServerLib/HttpRequest.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"