Skip to content
This repository was archived by the owner on Jan 20, 2024. It is now read-only.

Commit 2e36a95

Browse files
committed
Merge options over requestOptions
1 parent 7ae072f commit 2e36a95

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/client-oauth2.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -192,11 +192,13 @@ function toString (str) {
192192
* Merge request options from an options object.
193193
*/
194194
function requestOptions (requestOptions, options) {
195-
return extend(requestOptions, {
196-
body: extend(options.body, requestOptions.body),
197-
query: extend(options.query, requestOptions.query),
198-
headers: extend(options.headers, requestOptions.headers)
199-
})
195+
return {
196+
url: requestOptions.url,
197+
method: requestOptions.method,
198+
body: extend(requestOptions.body, options.body),
199+
query: extend(requestOptions.query, options.query),
200+
headers: extend(requestOptions.headers, options.headers)
201+
}
200202
}
201203

202204
/**

0 commit comments

Comments
 (0)