mirror of https://github.com/lukechilds/node.git
Browse Source
Fixes http-parser regression with IS_HEADER_CHAR check Add test case for obstext characters (> 0x80) in header PR-URL: https://github.com/nodejs/node/pull/5242 Reviewed-By: Rod Vagg <rod@vagg.org>v0.10
James M Snell
9 years ago
committed by
Rod Vagg
3 changed files with 18 additions and 2 deletions
@ -0,0 +1,16 @@ |
|||||
|
var common = require('../common'); |
||||
|
var http = require('http'); |
||||
|
var assert = require('assert'); |
||||
|
|
||||
|
var server = http.createServer(common.mustCall(function(req, res) { |
||||
|
res.end('ok'); |
||||
|
})); |
||||
|
server.listen(common.PORT, function() { |
||||
|
http.get({ |
||||
|
port: common.PORT, |
||||
|
headers: {'Test': 'Düsseldorf'} |
||||
|
}, common.mustCall(function(res) { |
||||
|
assert.equal(res.statusCode, 200); |
||||
|
server.close(); |
||||
|
})); |
||||
|
}); |
Loading…
Reference in new issue