diff options
Diffstat (limited to 'index.js')
-rw-r--r-- | index.js | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -48,6 +48,14 @@ console.log("Starting server..."); let server = http.createServer(function (req, res) { try { + if (req.headers["x-equestriadb-token"]) { + req.headers["x-pawerdb-token"] = req.headers["x-equestriadb-token"]; + } + + if (req.headers["x-eqdb-token"]) { + req.headers["x-pawerdb-token"] = req.headers["x-eqdb-token"]; + } + parts = req.url.split("/").filter(i => i.trim() !== ""); console.log(req.socket.address(), parts); @@ -98,4 +106,4 @@ let server = http.createServer(function (req, res) { server.listen(4459); -console.log("pawerDB listening on port 4459")
\ No newline at end of file +console.log("EquestriaDB listening on port 4459")
\ No newline at end of file |