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")]