Created
February 14, 2012 08:01
-
-
Save mashihua/1824740 to your computer and use it in GitHub Desktop.
LBYL test
This file contains 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
//test browser "look-before-you-leap" (LBYL) request | |
//expect is a header of HTTP/1.1 | |
var http = require('http'); | |
http.createServer(function(req,res){ | |
console.log(req.header['user-agent'],req.header.expect); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment