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

Commit dd28123

Browse files
committed
Proxy function instead of fixed url.
1 parent 7e7e209 commit dd28123

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/OAuth/Consumer.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
var oauth = {
2626
enablePrivilege: options.enablePrivilege || false,
2727

28-
proxyUrl: options.proxyUrl,
28+
proxy: options.proxy,
2929
callbackUrl: options.callbackUrl || 'oob',
3030

3131
consumerKey: options.consumerKey,
@@ -200,8 +200,8 @@
200200
headerParams['realm'] = this.realm;
201201
}
202202

203-
if (oauth.proxyUrl) {
204-
url = URI(oauth.proxyUrl + url.path);
203+
if (oauth.proxy) {
204+
url = URI(oauth.proxy(url.path, url.query));
205205
}
206206

207207
if(appendQueryString || method == 'GET') {

0 commit comments

Comments
 (0)