Commit f1e5400f authored by Girish Ramakrishnan's avatar Girish Ramakrishnan

res.redirect is an express hting

parent 2edfc656
......@@ -4,7 +4,7 @@
"author": "Cloudron developers",
"description": "used for unit and e2e tests",
"tagline": "test or be sorry",
"version": "26.2.3",
"version": "26.3.0",
"website": "https://www.cloudron.io",
"contactEmail": "girish@cloudron.io",
"manifestVersion": 2,
......
......@@ -682,7 +682,8 @@ function startServer() {
res.send(200, { size: fs.statSync('/tmp/upload').size });
});
} else if (parsedUrl.pathname === '/.well-known/cloudron') {
res.redirect(301, '/wellknown-works');
res.writeHead(301, {'Location' : '/wellknown-works'});
res.end();
} else {
res.send(404, { status: 'nothing here' });
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment