Commit 4dc85b1b authored by Matthew Taylor's avatar Matthew Taylor

use `defaults` again

deep is no longer necessary with the `headers` change
parent fa2c3269
var defaults = require('lodash.defaults'); var defaults = require('lodash.defaults');
var defaultsDeep = require('lodash.defaultsdeep');
var xhr = require('xhr'); var xhr = require('xhr');
var jar = require('./jar'); var jar = require('./jar');
...@@ -16,7 +15,7 @@ var urlParams = require('./url-params'); ...@@ -16,7 +15,7 @@ var urlParams = require('./url-params');
*/ */
module.exports = function (opts, callback) { module.exports = function (opts, callback) {
defaultsDeep(opts, { defaults(opts, {
host: process.env.API_HOST, host: process.env.API_HOST,
headers: {}, headers: {},
responseType: 'json', responseType: 'json',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment