Skip to content
This repository was archived by the owner on Mar 16, 2019. It is now read-only.

Commit 2e61ac4

Browse files
committed
Add missing API call #229
1 parent 636fba6 commit 2e61ac4

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/index.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import fs from './fs'
2222
import getUUID from './utils/uuid'
2323
import base64 from 'base-64'
2424
import polyfill from './polyfill'
25+
import _ from 'lodash'
2526
import android from './android'
2627
import ios from './ios'
2728
import net from './net'
@@ -219,7 +220,9 @@ function fetch(...args:any):Promise {
219220

220221
// # 241 normalize null or undefined headers, in case nil or null string
221222
// pass to native context
222-
headers = _.map(headers, (h) => h || '');
223+
_.each(headers, (h,i) => {
224+
headers[i] = h || ''
225+
});
223226

224227
// fetch from file system
225228
if(URIUtil.isFileURI(url)) {

src/ios.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,6 @@ function excludeFromBackupKey(url:string) {
4949

5050
export default {
5151
openDocument,
52-
previewDocument
52+
previewDocument,
53+
excludeFromBackupKey
5354
}

0 commit comments

Comments
 (0)