Fix browserification

Browserify fails to resolve the "./http-proxy/" as "./http-proxy/index.js" but as "./http-proxy.js" (so nothing works)
Beeing explicit here does not cost much for http-proxy, yet it's intrinsically complicated for browserify to fix (as trailing slash might be used as a pollyfill shim for native/non-natives addons i.e.  require('url/') vs require('url') )
This commit is contained in:
François Leurent 2016-07-20 12:23:19 +02:00 committed by Jarrett Cruger
parent f5217d6c20
commit 8eddf45f2a

View File

@ -1,7 +1,7 @@
var http = require('http'),
https = require('https'),
url = require('url'),
httpProxy = require('./http-proxy/');
httpProxy = require('./http-proxy/index.js');
/**
* Export the proxy "Server" as the main export.