jshttp / basic-auth

Generic basic auth Authorization header field parser
MIT License
702 stars 86 forks source link

Add test for malformed authorization scheme #13

Closed ruimarinho closed 10 years ago

ruimarinho commented 10 years ago

Existing code verifies if the scheme parsed from the Authorization header is (case-insensitively) equal to Basic, as per RFC 2617. I've added a test to assert this.