Skip to content

Commit 264ff7d

Browse files
atlantehwkh237
authored andcommitted
Support PATCH action in iOS (wkh237#309)
1 parent 62922e8 commit 264ff7d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ios/RNFetchBlobReqBuilder.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ +(void) buildOctetRequest:(NSDictionary *)options
9999
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
100100
NSMutableData * blobData;
101101
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"]) {
104104
// generate octet-stream body
105105
if(body != nil) {
106106
__block NSString * cType = [[self class] getHeaderIgnoreCases:@"content-type" fromHeaders:mheaders];

0 commit comments

Comments
 (0)