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

feat(entitytag): Add EntityTag comparison, make EntityTag safe to use #409

Merged
merged 1 commit into from
Mar 30, 2015
Merged

Commits on Mar 30, 2015

  1. feat(entitytag): Add EntityTag comparison, make EntityTag safe to use

    Adds strong and weak comparison to EntityTag as described in the RFC,
    add tests for this. Make EntityTag safe to use by hiding the tag field,
    this prevents users from inserting malicious values for the tag. Invalid
    values can screw up header formatting and may allow to insert headers.
    Introduce EntityTag::new(), .tag() and .set_tag() methods. Fix Display
    trait for EntityTag. DQUOTES were missing. Remove custom formatting in ETag
    header. Improve docs.
    
    BREAKING_CHANGE: EntityTag.tag is private, use EntityTag.tag() and
    EntityTag.set_tag("foobar") to access it.
    pyfisch committed Mar 30, 2015
    Configuration menu
    Copy the full SHA
    9c21f7f View commit details
    Browse the repository at this point in the history