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:
parent
4e8c0573c4
commit
090852b72b
@ -184,20 +184,11 @@ describe('HTTP Request Node', function() {
|
|||||||
});
|
});
|
||||||
testApp.get('/proxyAuthenticate', function(req, res){
|
testApp.get('/proxyAuthenticate', function(req, res){
|
||||||
var user = auth.parse(req.headers['proxy-authorization']);
|
var user = auth.parse(req.headers['proxy-authorization']);
|
||||||
var result
|
var result = {
|
||||||
if (user) {
|
user: user.name,
|
||||||
result = {
|
pass: user.pass,
|
||||||
user: user.name,
|
headers: req.headers
|
||||||
pass: user.pass,
|
};
|
||||||
headers: req.headers
|
|
||||||
};
|
|
||||||
} else {
|
|
||||||
result = {
|
|
||||||
user: "foouser",
|
|
||||||
pass: "barpassword",
|
|
||||||
headers: req.headers
|
|
||||||
}
|
|
||||||
}
|
|
||||||
res.json(result);
|
res.json(result);
|
||||||
});
|
});
|
||||||
testApp.post('/postInspect', function(req,res) {
|
testApp.post('/postInspect', function(req,res) {
|
||||||
|
Loading…
Reference in New Issue
Block a user