Created
November 22, 2016 19:01
-
-
Save atomsfat/73a5883693b1391b596a44bbc209f1ff to your computer and use it in GitHub Desktop.
Simple sever to debug header and url behind proxies
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require('express'); | |
var app = express(); | |
app.get('/*', function (req, res) { | |
console.log(req.originalUrl) | |
console.log(req.headers) | |
res.send('Hello World!'); | |
}); | |
app.listen(8090, function () { | |
console.log('Example app listening on port 8090!'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment