johnbrett / hapi-auth-bearer-token

Simple Bearer authentication scheme plugin for hapi, accepts token by Header, Cookie or Query parameter.
MIT License
218 stars 46 forks source link

Update README.md #11

Closed agchou closed 9 years ago

agchou commented 9 years ago

By default, options.allowMultipleHeaders if false if not specified. Fixing mistake in example code which says that it is true by default.

Checked source code and found this to confirm (lib/index.js: 13).

"options.allowMultipleHeaders = options.allowMultipleHeaders === true ? true : false;"

johnbrett commented 9 years ago

Thanks for the pull request!

agchou commented 9 years ago

No problem. I was going to make a change for accessing multiple headers but see that @atomantic already got that done in a separate repo :+1: