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/5241 Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com> Reviewed-By: Rod Vagg <rod@vagg.org>v0.12-staging
committed by
Rod Vagg
4 changed files with 21 additions and 3 deletions
@ -0,0 +1,18 @@ |
|||
'use strict'; |
|||
|
|||
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