We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dcbde6f + a3d78cb commit 0986336Copy full SHA for 0986336
index.js
@@ -21,7 +21,6 @@ import fs from './fs'
21
import getUUID from './utils/uuid'
22
import base64 from 'base-64'
23
import polyfill from './polyfill'
24
-import _ from 'lodash'
25
import android from './android'
26
import ios from './ios'
27
import JSONStream from './json-stream'
@@ -224,8 +223,8 @@ function fetch(...args:any):Promise {
224
223
225
// # 241 normalize null or undefined headers, in case nil or null string
226
// pass to native context
227
- headers = _.reduce(headers, (result, value, key) => {
228
- result[key] = value || ''
+ headers = headers && Object.keys(headers).reduce((result, key) => {
+ result[key] = headers[key] || ''
229
return result
230
}, {});
231
0 commit comments