Open deathcap opened 9 years ago
The Node 'request' module allows options.uri to be a parsed object from the 'url' module. In this case, the href property is set to the original URL. Check for this property to restore compatibility with browser-request/request.
e.g., this code works in node:
require('request')({uri: require('url').parse('http://npmjs.org/')}, function() {})
and now works with a browserified browser-request. Includes test case
The Node 'request' module allows options.uri to be a parsed object from the 'url' module. In this case, the href property is set to the original URL. Check for this property to restore compatibility with browser-request/request.
e.g., this code works in node:
and now works with a browserified browser-request. Includes test case