Merge pull request #15607 from minggo/iss-15413

remove Content-Type limitation
This commit is contained in:
minggo 2016-05-11 10:57:34 +08:00
commit bb5d1a5e97
1 changed files with 1 additions and 6 deletions

View File

@ -170,12 +170,7 @@ static int processTask(HttpClient* client, HttpRequest* request, NSString* reque
//if request type is post or put,set header and data
if([requestType isEqual: @"POST"] || [requestType isEqual: @"PUT"])
{
if ([requestType isEqual: @"PUT"])
{
[nsrequest setValue: @"application/x-www-form-urlencoded" forHTTPHeaderField: @"Content-Type"];
}
{
char* requestDataBuffer = request->getRequestData();
if (nullptr != requestDataBuffer && 0 != request->getRequestDataSize())
{