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

generated ETag header value is invalid #24

Open
avdv opened this issue Dec 23, 2014 · 0 comments
Open

generated ETag header value is invalid #24

avdv opened this issue Dec 23, 2014 · 0 comments

Comments

@avdv
Copy link

avdv commented Dec 23, 2014

According to http://tools.ietf.org/html/rfc7232#section-2.3 an ETag header has the format:

ETag       = entity-tag

     entity-tag = [ weak ] opaque-tag
     weak       = %x57.2F ; "W/", case-sensitive
     opaque-tag = DQUOTE *etagc DQUOTE
     etagc      = %x21 / %x23-7E / obs-text
                ; VCHAR except double quotes, plus obs-text

Ie. the tag has to be wrapped in double quotes.

The StaticFileHandler generates ETags without those quotes. Found using the REDbot tool, which complains thusly:

  • The etag header's syntax isn't valid.

    The value for this header doesn't conform to its specified syntax; see
    its definition for more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant