Skip to content

Instantly share code, notes, and snippets.

@tgvashworth
Created December 5, 2013 17:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tgvashworth/7810020 to your computer and use it in GitHub Desktop.
Save tgvashworth/7810020 to your computer and use it in GitHub Desktop.
a=require;a('http').createServer(function(b,c){d=a('url').parse(b.url,1).query;setTimeout(c.end.bind(c),d.t,c.writeHead(302,{Location:d.u}))}).listen(3e3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment