Skip to content
This repository has been archived by the owner on Nov 28, 2017. It is now read-only.

Commit

Permalink
allow reqOptions to override URL (for debugging/testing).
Browse files Browse the repository at this point in the history
  • Loading branch information
benbuckman committed Nov 3, 2015
1 parent 0a5c2c3 commit 50d8544
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/xml-request.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ exports.xmlRequest = function(options, callback) {
options.reqOptions.headers = options.reqOptions.headers || {};
_.defaults(options.reqOptions.headers, getDefaultHeaders(options));

var reqOptions = _.extend({}, options.reqOptions, {
var reqOptions = _.extend({}, {
url: buildRequestUrl(options),
body: buildXmlInput(options),
});
}, options.reqOptions);

debug('XML request options', reqOptions);
timer('time to initiate request', Date.now() - _startTime);
Expand Down

0 comments on commit 50d8544

Please sign in to comment.