Download Latest Version Version 1.9.0 source code.zip (2.8 MB) Google Add to Preferred Sources
Home / 1.9.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2026-10-18 1.4 kB
Version 1.9.0 source code.tar.gz 2026-10-18 2.7 MB
Version 1.9.0 source code.zip 2026-10-18 2.8 MB
Totals: 3 Items   5.5 MB 1

This release streams TestClient response bodies, so client.stream() returns before the application finishes. It also escapes path delimiters when building URLs, matches host names case-insensitively, and keeps every existing Vary header.

Changed

  • Stream TestClient response bodies, so client.stream() returns before the application finishes. Closing an unfinished streamed response now cancels the application #3491.

Fixed

  • Percent-encode ?, #, \ and a leading // in the request path when building request.url, and \ and a leading // in url_path_for #3671.
  • Use the byte length for Content-Length when the response body is a typed or multidimensional memoryview #3622.
  • Include HEAD in the Allow header of HTTPEndpoint 405 responses when GET is defined #3585.
  • Match host names case-insensitively in Host routing and TrustedHostMiddleware #3542.
  • Preserve every existing Vary header in MutableHeaders.add_vary_header(), used by GZipMiddleware and SessionMiddleware #3675.

Full changelog: 1.8.0...1.9.0

Source: README.md, updated 2026-10-18