Repository: incubator-weex Updated Branches: refs/heads/0.11-dev 01cb49ca2 -> d9907e922
* [ios] fix compiler complain Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/c120eb9f Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/c120eb9f Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/c120eb9f Branch: refs/heads/0.11-dev Commit: c120eb9f9a5d00538f62891ec78640810786fe28 Parents: bf799b4 Author: acton393 <[email protected]> Authored: Mon Mar 13 10:31:29 2017 +0800 Committer: acton393 <[email protected]> Committed: Mon Mar 13 10:31:29 2017 +0800 ---------------------------------------------------------------------- ios/sdk/WeexSDK/Sources/Module/WXStreamModule.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/c120eb9f/ios/sdk/WeexSDK/Sources/Module/WXStreamModule.m ---------------------------------------------------------------------- diff --git a/ios/sdk/WeexSDK/Sources/Module/WXStreamModule.m b/ios/sdk/WeexSDK/Sources/Module/WXStreamModule.m index b100e20..c23680d 100644 --- a/ios/sdk/WeexSDK/Sources/Module/WXStreamModule.m +++ b/ios/sdk/WeexSDK/Sources/Module/WXStreamModule.m @@ -73,7 +73,7 @@ WX_EXPORT_METHOD(@selector(fetch:callback:progressCallback:)) loader.onFinished = ^(const WXResourceResponse * response, NSData *data) { if (weakSelf) { - [weakSelf _loadFinishWithResponse:response data:data callbackRsp:callbackRsp]; + [weakSelf _loadFinishWithResponse:[response copy] data:data callbackRsp:callbackRsp]; if (callback) { callback(callbackRsp); }
