修复不能使用put的bug

This commit is contained in:
王超
2016-04-18 12:58:25 +08:00
parent fc11e0898a
commit 0cb10045e5
2 changed files with 5 additions and 4 deletions
+3 -2
View File
@@ -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())
{
+2 -2
View File
@@ -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")]