mirror of https://github.com/axmolengine/axmol.git
Merge pull request #15607 from minggo/iss-15413
remove Content-Type limitation
This commit is contained in:
commit
bb5d1a5e97
|
@ -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())
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue