1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Revet changes to /proxyAuthneticate

This end point is currently not hit
This commit is contained in:
Ben Hardill 2021-06-08 12:06:18 +01:00
parent 4e8c0573c4
commit 090852b72b
No known key found for this signature in database
GPG Key ID: 74DD076979ABB1E7

View File

@ -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 = {
var result = {
user: user.name,
pass: user.pass,
headers: req.headers
};
} else {
result = {
user: "foouser",
pass: "barpassword",
headers: req.headers
}
}
res.json(result);
});
testApp.post('/postInspect', function(req,res) {