From 0cb10045e5158fbc473eddf8fc25efc348f5525f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=B6=85?= <1985088337@qq.com> Date: Mon, 18 Apr 2016 12:58:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=8D=E8=83=BD=E4=BD=BF?= =?UTF-8?q?=E7=94=A8put=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- OS.Http/Connect/HttpBase.cs | 5 +++-- OS.Http/Properties/AssemblyInfo.cs | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/OS.Http/Connect/HttpBase.cs b/OS.Http/Connect/HttpBase.cs index 2786a8c..a2b6c62 100644 --- a/OS.Http/Connect/HttpBase.cs +++ b/OS.Http/Connect/HttpBase.cs @@ -136,9 +136,10 @@ namespace OS.Http.Connect } else { - if (request.HttpMothed == HttpMothed.POST) + string data = EncodeFormParameters(request); + if (!string.IsNullOrEmpty(data)) { - var bytes = _defaultEncoding.GetBytes(EncodeFormParameters(request)); + var bytes = _defaultEncoding.GetBytes(data); webRequest.ContentLength = bytes.Length; using (var webRequestStream = webRequest.GetRequestStream()) { diff --git a/OS.Http/Properties/AssemblyInfo.cs b/OS.Http/Properties/AssemblyInfo.cs index edd0151..cbc35d4 100644 --- a/OS.Http/Properties/AssemblyInfo.cs +++ b/OS.Http/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ using System.Runtime.InteropServices; // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.1.0.0")] -[assembly: AssemblyFileVersion("1.1.0.0")] +[assembly: AssemblyVersion("1.1.1.0")] +[assembly: AssemblyFileVersion("1.1.1.0")]