-
Notifications
You must be signed in to change notification settings - Fork 170
incorrect parsing of multiple HSTS headers #363
Comments
I can't really fix this one, because this is happening very deep inside requests/httplib. Even if I could, I would rather it simply say that it's invalid so people figure out that they're doing something they shouldn't be doing and fix it. |
If anyone is interested in patching this in https://github.com/urllib3/urllib3/pull/534/files#diff-01955f24bc4d0d621454698a584ab854R290 In essence, there are two fixes that could be proposed:
|
i raised this issue with urllib3, and was told the parsing we want is possible:
|
from @globau at mozilla/http-observatory-website#169:
currently toolbox3.iinet.net.au returns two STS headers:
the observatory folds those into a single header, reporting as:
https://bugzilla.mozilla.org/show_bug.cgi?id=1074642
while the response is malformed and should be reported as such by the observatory, it shouldn't be folding multiple HSTS headers into a single item.
in terms of validation only the first should be considered.
https://hg.mozilla.org/integration/autoland/rev/0f8ae1c5e282
ps. i have reported the multiple header issue to the site owner, along with a heads-up about their symantec issued cert.
The text was updated successfully, but these errors were encountered: