Update ntlm-authentication.js (#1025)

This commit is contained in:
wuchangming 2016-08-12 00:37:57 +08:00 committed by Jarrett Cruger
parent d0e000e1f9
commit 9d06ca99d3

View File

@ -13,8 +13,8 @@ var agent = new Agent({
var proxy = httpProxy.createProxy({ target: 'http://whatever.com', agent: agent }); var proxy = httpProxy.createProxy({ target: 'http://whatever.com', agent: agent });
// //
// Modify headers of the request before it gets sent // Modify headers of the response before it gets sent
// So that we handle the NLTM authentication request // So that we handle the NLTM authentication response
// //
proxy.on('proxyRes', function (proxyRes) { proxy.on('proxyRes', function (proxyRes) {
var key = 'www-authenticate'; var key = 'www-authenticate';