Closed coolhandmook closed 10 years ago
I think it would be better if this was a backwards compatible change. proxyUrl should remain intact in its current form
So something like this? Or should I avoid using "callback" because of the callbackUrl? proxyHandler perhaps. Let me know what you prefer and I'll sort it out.
proxyUrl: options.proxyUrl,
proxyCallback: options.proxyCallback,
Why not do something like this:
if (oauth.proxy && typeof oauth.proxy == 'function') {
url = URI(oauth.proxy(url.path, url.query));
} else if(oauth.proxy) {
// .....
}
:question:
Agree with @lukaszkorecki, this would be a prefect solution. However, don't remove proxyUrl as this functionality is already used by a few people.
Not so simple any more though. :)
Hi.
I found the proxy more useful as a function. Pretty simple change.
Cheers, Dave.