dmfs / http-client-essentials-suite

A lightweight http-client suite.
Apache License 2.0
11 stars 5 forks source link

Parsing Challenges is broken #112

Closed dmfs closed 6 years ago

dmfs commented 6 years ago

If challenges are returned in a single header with spaces after the comma, the parsed challenges are invalid. Example:

WWW-Authenticate: Foo realm="Realm", Bar realm="Realm"

Will be parsed into a challenge with the scheme ' Bar realm="Realm"' and a challenge '' and challenge with scheme 'Foo' and the challenge 'realm="Realm"'.