From 4ff4583ff23e0e40b5c8672874e5085e265e2276 Mon Sep 17 00:00:00 2001 From: Dong Liu Date: Thu, 16 Jun 2016 04:30:58 +0800 Subject: [PATCH] requestLibrarySink should be called with requestOptions if no additional arguments specified. (#1108) --- ClientRuntimes/NodeJS/ms-rest/lib/requestPipeline.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ClientRuntimes/NodeJS/ms-rest/lib/requestPipeline.js b/ClientRuntimes/NodeJS/ms-rest/lib/requestPipeline.js index f1682e9ba834f..8f227aa0d8a3d 100644 --- a/ClientRuntimes/NodeJS/ms-rest/lib/requestPipeline.js +++ b/ClientRuntimes/NodeJS/ms-rest/lib/requestPipeline.js @@ -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 @@ -204,4 +204,4 @@ exports.interimStream = function(setPipes) { return duplex; }; -exports = module.exports; \ No newline at end of file +exports = module.exports;