Skip to content

Instantly share code, notes, and snippets.

@hc5duke
Created March 16, 2014 05:15
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save hc5duke/9578865 to your computer and use it in GitHub Desktop.
var http = require("http");
http.createServer(function(request, response) {
'use strict';
response.writeHead(200, {"Content-Type": "text/plain"});
response.write(request.headers['accept-language']);
response.end();
}).listen(8888);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment