mirror of
https://github.com/KevinWG/OSS.Tools.git
synced 2026-10-29 06:03:17 +08:00
修复不能使用put的bug
This commit is contained in:
@@ -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())
|
||||
{
|
||||
|
||||
@@ -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")]
|
||||
|
||||
Reference in New Issue
Block a user