Skip to content
New issue

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

Expect-CT header using comma delimiter instead of semicolon #680

Closed
leonklingele opened this issue Aug 8, 2018 · 1 comment
Closed

Expect-CT header using comma delimiter instead of semicolon #680

leonklingele opened this issue Aug 8, 2018 · 1 comment

Comments

@leonklingele
Copy link

In contract to headers like Content-Type, Content-Security-Policy, Feature-Policy, Public-Key-Pins, Strict-Transport-Security, etc., the Expect-CT header uses a comma delimiter instead of a semicolon. What's the reason for that?

Content-Type: text/html; charset=UTF-8
                       ^ Semicolon

Content-Security-Policy: default-src 'none'; script-src 'self'
                                           ^ Semicolon

Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
                                           ^ Semicolon        ^ Semicolon

Expect-CT: enforce, max-age=86400
                  ^ Comma
@martinthomson
Copy link
Contributor

Commas are used to separate different values. Those other header fields are comprised of a single value (with multiple parts). Expect-CT, like Cache-Control, includes multiple separate directives.

You could also say that Expect-CT fails to replicate the mistakes of those other header fields, but some of those - like CSP - are explicitly designed to have a single directive.

@mnot mnot closed this as completed Aug 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants