From 27ae04cabdf447480fd4a3d1b8e7155294196ffd Mon Sep 17 00:00:00 2001 From: Saleeh Date: Tue, 15 Nov 2016 08:30:44 -0800 Subject: [PATCH] Fixed #7564 Summary: Fix for some firewall with ModSecurity rules for MULTIPART_STRICT_ERROR, namely MULTIPART_BOUNDARY_QUOTED. Closes https://github.com/facebook/react-native/pull/10876 Reviewed By: javache Differential Revision: D4176229 Pulled By: ericvicenti fbshipit-source-id: 8db819bd3e9b23fa3c1802c48091bb4c44358381 --- Libraries/Network/RCTNetworking.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/Network/RCTNetworking.mm b/Libraries/Network/RCTNetworking.mm index c3bf6c697fc8ee..994eac468466d9 100644 --- a/Libraries/Network/RCTNetworking.mm +++ b/Libraries/Network/RCTNetworking.mm @@ -116,7 +116,7 @@ - (RCTURLRequestCancellationBlock)handleResult:(NSDictionary *)r // We've processed the last item. Finish and return. [_multipartBody appendData:[[NSString stringWithFormat:@"--%@--\r\n", _boundary] dataUsingEncoding:NSUTF8StringEncoding]]; - NSString *contentType = [NSString stringWithFormat:@"multipart/form-data; boundary=\"%@\"", _boundary]; + NSString *contentType = [NSString stringWithFormat:@"multipart/form-data; boundary=%@", _boundary]; return _callback(nil, @{@"body": _multipartBody, @"contentType": contentType}); }