Skip to content

Release 0.2.4#227

Merged
davidpdrsn merged 4 commits into0.2.xfrom
tower-http-0.2.4
Mar 7, 2022
Merged

Release 0.2.4#227
davidpdrsn merged 4 commits into0.2.xfrom
tower-http-0.2.4

Conversation

@davidpdrsn
Copy link
Copy Markdown
Member

I've backported #214 to 0.2.x since master contains breaking changes and so this PR releases that.

- Added `CatchPanic` middleware which catches panics and converts them
  into `500 Internal Server` responses ([#214])

[#214]: #214
@davidpdrsn davidpdrsn added the T-release Topic: releases label Mar 5, 2022
@davidpdrsn davidpdrsn requested a review from Nehliin March 5, 2022 11:14
@Nehliin
Copy link
Copy Markdown
Collaborator

Nehliin commented Mar 7, 2022

Could be worth mentioning the improved Accept-encoding parsing here as well!

mdickopp and others added 2 commits March 7, 2022 09:43
* 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)
@davidpdrsn
Copy link
Copy Markdown
Member Author

@Nehliin Good idea! I've backported #220 as well.

@davidpdrsn davidpdrsn merged commit f8518f9 into 0.2.x Mar 7, 2022
@davidpdrsn davidpdrsn deleted the tower-http-0.2.4 branch March 7, 2022 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T-release Topic: releases

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants