Skip to content

Instantly share code, notes, and snippets.

@robashton

robashton/app

Created Jul 9, 2013
Embed
What would you like to do?
var http = require('http')
http.createServer(function(req, res) {
res.writeHead(200, {
'Content-Type': 'text/html',
'X-GeneratedBy': "NodeJS Bitches",
'X-MadeBy': 'An angry node developer',
'X-Extra': 'Seriously, Fuck rails. Fuck. Fuck. Fuck.'})
res.write([
'<html>',
'<body style="border: 0; margin: 0; padding: 0"><iframe src="http://typicalcowboybullshit.com/random" height="100%" width="100%" style="padding: 0; margin: 0; border: 0"></body>',
'</html'].join(''))
res.end()
}).listen(process.env.PORT || 8005)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment