mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Revet changes to /proxyAuthneticate
This end point is currently not hit
This commit is contained in:
		@@ -184,20 +184,11 @@ describe('HTTP Request Node', function() {
 | 
			
		||||
        });
 | 
			
		||||
        testApp.get('/proxyAuthenticate', function(req, res){
 | 
			
		||||
            var user = auth.parse(req.headers['proxy-authorization']);
 | 
			
		||||
            var result
 | 
			
		||||
            if (user) {
 | 
			
		||||
                result = {
 | 
			
		||||
                    user: user.name,
 | 
			
		||||
                    pass: user.pass,
 | 
			
		||||
                    headers: req.headers
 | 
			
		||||
                };
 | 
			
		||||
            } else {
 | 
			
		||||
                result = {
 | 
			
		||||
                    user: "foouser",
 | 
			
		||||
                    pass: "barpassword",
 | 
			
		||||
                    headers: req.headers
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
            var result = {
 | 
			
		||||
                user: user.name,
 | 
			
		||||
                pass: user.pass,
 | 
			
		||||
                headers: req.headers
 | 
			
		||||
            };
 | 
			
		||||
            res.json(result);
 | 
			
		||||
        });
 | 
			
		||||
        testApp.post('/postInspect', function(req,res) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user