File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -99,8 +99,8 @@ +(void) buildOctetRequest:(NSDictionary *)options
99
99
dispatch_async (dispatch_get_global_queue (DISPATCH_QUEUE_PRIORITY_DEFAULT, 0 ), ^{
100
100
NSMutableData * blobData;
101
101
long size = -1 ;
102
- // if method is POST or PUT , convert data string format
103
- if ([[method lowercaseString ] isEqualToString: @" post" ] || [[method lowercaseString ] isEqualToString: @" put" ]) {
102
+ // if method is POST, PUT or PATCH , convert data string format
103
+ if ([[method lowercaseString ] isEqualToString: @" post" ] || [[method lowercaseString ] isEqualToString: @" put" ] || [[method lowercaseString ] isEqualToString: @" patch " ] ) {
104
104
// generate octet-stream body
105
105
if (body != nil ) {
106
106
__block NSString * cType = [[self class ] getHeaderIgnoreCases: @" content-type" fromHeaders: mheaders];
You can’t perform that action at this time.
0 commit comments