Skip to content
Snippets Groups Projects
Commit fd032563 authored by Brian Peiris's avatar Brian Peiris
Browse files

have the dev server respond to HEAD requests

parent 9c304188
No related branches found
No related tags found
No related merge requests found
...@@ -12,6 +12,17 @@ module.exports = merge(common, { ...@@ -12,6 +12,17 @@ module.exports = merge(common, {
https: { https: {
cert: fs.readFileSync("/home/ubuntu/fullchain.pem"), cert: fs.readFileSync("/home/ubuntu/fullchain.pem"),
key: fs.readFileSync("/home/ubuntu/privkey.pem") key: fs.readFileSync("/home/ubuntu/privkey.pem")
},
before: function (app) {
// networked-aframe makes HEAD requests to the server for time syncing. Respond with an empty body.
app.head('\*', function (req, res, next) {
if (req.method === 'HEAD') {
res.send('');
}
else {
next();
}
});
} }
}, },
plugins: [new WriteFilePlugin()] plugins: [new WriteFilePlugin()]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment