Skip to content

Commit

Permalink
fix: key and val might be undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
zilong-thu committed Jul 24, 2018
1 parent 9d0d8cd commit 3f64aca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Network/Network.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ export default class Network extends Tool {
}
let key = arguments[0]
let val = arguments[1]
req._headers[key] = val
if (key && val) {
req._headers[key] = val
}

origSetRequestHeader.apply(this, arguments)
}
Expand Down

0 comments on commit 3f64aca

Please sign in to comment.