We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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;;'
{"statusCode":400,"error":"Bad Request","message":"Invalid cookie header"}
omg
The text was updated successfully, but these errors were encountered:
hueniverse
No branches or pull requests
What are you trying to achieve or the steps to reproduce?
Invalid cookie header despite strictHeader: false, ignoreErrors: true
when sending
;;
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
The text was updated successfully, but these errors were encountered: