You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/node-http-proxy/proxy-table.js
+21-2
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,7 @@ var util = require('util'),
34
34
// #### @router {Object} Object containing the host based routes
35
35
// #### @silent {Boolean} Value indicating whether we should suppress logs
36
36
// #### @hostnameOnly {Boolean} Value indicating if we should route based on __hostname string only__
37
+
// #### @pathnameOnly {Boolean} Value indicating if we should route based on only the pathname. __This causes hostnames to be ignored.__. Using this along with hostnameOnly wont work at all.
37
38
// Constructor function for the ProxyTable responsible for getting
38
39
// locations of proxy targets based on ServerRequest headers; specifically
39
40
// the HTTP host header.
@@ -43,6 +44,7 @@ var ProxyTable = exports.ProxyTable = function (options) {
0 commit comments