-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
Milestone
Description
What are you trying to achieve or the steps to reproduce?
Invalid cookie header despite strictHeader: false, ignoreErrors: true
when sending ;;
const Hapi = require('hapi');
const Hoek = require('hoek');
const server = new Hapi.Server();
server.connection({
port: 8411,
state: {
strictHeader: false,
ignoreErrors: true
}
});
server.start((err) => {
Hoek.assert(!err, err);
console.log('Server started at: ' + server.info.uri);
});
const handler = function (request, reply) {
return reply('omg');
};
server.route({ method: 'GET', path: '/', handler });curl 'http://localhost:8411' -H 'Cookie: foo=bar;;'
What was the result you received?
{"statusCode":400,"error":"Bad Request","message":"Invalid cookie header"}
What did you expect?
omg
Context
- node version: v6.9.1
- hapi version: 16.4.1
- os: Darwin nero.local 16.0.0 Darwin Kernel Version 16.0.0: