Explorar el Código

Support PATCH action in iOS (#309)

atlanteh hace 7 años
padre
commit
264ff7da07
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2
    2
      ios/RNFetchBlobReqBuilder.m

+ 2
- 2
ios/RNFetchBlobReqBuilder.m Ver fichero

@@ -99,8 +99,8 @@
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];