Skip to content

Releases: tower-rs/tower-http

v0.5.2

23 Feb 08:16
18219fc
Compare
Choose a tag to compare

Added:

  • compression: Will now send a vary: accept-encoding header on compressed responses (#399)
  • compression: Support x-gzip as equivalent to gzip in accept-encoding request header (#467)

Fixed

  • compression: Skip compression for range requests (#446)
  • compression: Skip compression for SSE responses by default (#465)
  • cors: Actually keep Vary headers set by the inner service when setting response headers (#473)
    • Version 0.5.1 intended to ship this, but the implementation was buggy and didn't actually do anything

v0.5.1

14 Jan 20:46
c9c72fe
Compare
Choose a tag to compare
  • fs: Support files precompressed with zstd in ServeFile
  • trace: Add default generic parameters for ResponseBody and ResponseFuture (#455)
  • trace: Add type aliases HttpMakeClassifier and GrpcMakeClassifier (#455)

Fixed

  • cors: Keep Vary headers set by the inner service when setting response headers (#398)
  • fs: ServeDir now no longer redirects from /directory to /directory/
    if append_index_html_on_directories is disabled (#421)

v0.5.0

21 Nov 14:53
3d3bb02
Compare
Choose a tag to compare

Changed

  • Bump Minimum Supported Rust Version to 1.66 (#433)
  • Update to http-body 1.0 (#348)
  • Update to http 1.0 (#348)
  • Preserve service error type in RequestDecompression (#368)

Fixed

  • Accepts range headers with ranges where the end of range goes past the end of the document by bumping
    http-range-header to 0.4

v0.4.4

01 Sep 15:16
466f0e0
Compare
Choose a tag to compare
  • trace: Default implementations for trace bodies.

v0.4.3

20 Jul 14:01
8389995
Compare
Choose a tag to compare

Fixed

  • compression: Fix accidental breaking change in 0.4.2.

v0.4.2

19 Jul 09:22
1bca37d
Compare
Choose a tag to compare

Added

  • cors: Add support for private network preflights (#373)
  • compression: Implement Default for DecompressionBody (#370)

Changed

  • compression: Update to async-compression 0.4 (#371)

Fixed

  • compression: Override default brotli compression level 11 -> 4 (#356)
  • trace: Simplify dynamic tracing level application (#380)
  • normalize_path: Fix path normalization for preceding slashes (#359)

v0.4.1

20 Jun 08:30
f9aa1ae
Compare
Choose a tag to compare

Added

  • request_id: Derive Default for MakeRequestUuid (#335)
  • fs: Derive Default for ServeFileSystemResponseBody (#336)
  • compression: Expose compression quality on the CompressionLayer (#333)

Fixed

  • compression: Improve parsing of Accept-Encoding request header (#220)
  • normalize_path: Fix path normalization of index route (#347)
  • decompression: Enable multiple_members for GzipDecoder (#354)

v0.4.0

24 Feb 14:41
842cf89
Compare
Choose a tag to compare

Added

  • decompression: Add RequestDecompression middleware (#282)
  • compression: Implement Default for CompressionBody (#323)
  • compression, decompression: Support zstd (de)compression (#322)

Changed

  • serve_dir: ServeDir and ServeFile's error types are now Infallible and any IO errors
    will be converted into responses. Use try_call to generate error responses manually (BREAKING) (#283)
  • serve_dir: ServeDir::fallback and ServeDir::not_found_service now requires
    the fallback service to use Infallible as its error type (BREAKING) (#283)
  • compression, decompression: Tweak prefered compression encodings (#325)

Removed

  • Removed RequireAuthorization in favor of ValidateRequest (BREAKING) (#290)

Fixed

  • serve_dir: Don't include identity in Content-Encoding header (#317)
  • compression: Do compress SVGs (#321)
  • serve_dir: In ServeDir, convert io::ErrorKind::NotADirectory to 404 Not Found (#331)

v0.3.5

02 Dec 13:16
ffcdec5
Compare
Choose a tag to compare

Added

  • Add NormalizePath middleware (#275)
  • Add ValidateRequest middleware (#289)
  • Add RequestBodyTimeout middleware (#303)

Changed

  • Bump Minimum Supported Rust Version to 1.60 (#299)

Fixed

  • trace: Correctly identify gRPC requests in default on_response callback (#278)
  • cors: Panic if a wildcard (*) is passed to AllowOrigin::list. Use
    AllowOrigin::any() instead (#285)
  • serve_dir: Call the fallback on non-uft8 request paths (#310)

v0.3.4

06 Jun 18:29
bab200c
Compare
Choose a tag to compare

Added

  • Add Timeout middleware (#270)
  • Add RequestBodyLimit middleware (#271)