Skip to content

Commit

Permalink
Fix parsing of Accept-Encoding request header (#220)
Browse files Browse the repository at this point in the history
* Fix parsing of Accept-Encoding request header

* Add unit tests to content_encoding

* Represent quality values (qvalues) by a separate type

* Parse encodings case-insensitively

* Parse qvalues as specified in RFC 7231 section 5.3.1

Refs: #215

* Do not use or-pattern syntax

This syntax is not supported in rust 1.51 (the minimum toolchain
version).

* Add comments to QValue::parse

* Remove redundant SupportedEncodingsAll::new function

* Add unit tests for all content-encodings (gzip, deflate, br)
  • Loading branch information
mdickopp authored and davidpdrsn committed Mar 7, 2022
1 parent 1489aa5 commit c6bd566
Show file tree
Hide file tree
Showing 2 changed files with 457 additions and 33 deletions.
Loading

0 comments on commit c6bd566

Please sign in to comment.