Skip to content

Commit

Permalink
requestLibrarySink should be called with requestOptions if no additio…
Browse files Browse the repository at this point in the history
…nal arguments specified. (Azure#1108)
  • Loading branch information
karataliu authored and amarzavery committed Jun 15, 2016
1 parent ac312fe commit 4ff4583
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ClientRuntimes/NodeJS/ms-rest/lib/requestPipeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ exports.requestLibrarySink = function (requestOptions) {
exports.create = function (requestOptions) {
return function () {
if (arguments.length === 0) {
return exports.createWithSink(exports.requestLibrarySink);
return exports.createWithSink(exports.requestLibrarySink(requestOptions));
}
// User passed filters to add to the pipeline.
// build up appropriate arguments and call exports.createWithSink
Expand Down Expand Up @@ -204,4 +204,4 @@ exports.interimStream = function(setPipes) {
return duplex;
};

exports = module.exports;
exports = module.exports;

0 comments on commit 4ff4583

Please sign in to comment.