mirror of
https://github.com/zebrajr/node.git
synced 2025-12-07 00:20:38 +01:00
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>
18 lines
420 B
JavaScript
18 lines
420 B
JavaScript
'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();
|
|
}));
|
|
}); |