1.9.0
Version 1.9.0
Changed 2
- Stream TestClient response bodies so client.stream() returns before the application finishes behavior changed · inferred, marked in the notes below
- Closing an unfinished streamed TestClient response cancels the application
Fixed 6
- Percent-encode ?, #, \ and a leading // in the request path when building request.url behavior changed · inferred, marked in the notes below
- Percent-encode \ and a leading // in url_path_for behavior changed · inferred, marked in the notes below
- Use the byte length for Content-Length when the response body is a typed or multidimensional memoryview
- Include HEAD in the Allow header of HTTPEndpoint 405 responses when GET is defined
- Match host names case-insensitively in Host routing and TrustedHostMiddleware
- Preserve every existing Vary header in MutableHeaders.add_vary_header(), used by GZipMiddleware and SessionMiddleware
2 changes to check, marked in the notes below
From Starlette
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
TestClientresponse bodies, soclient.stream()returns before the application finishes. Closing an unfinished streamed response now cancels the application #3491. behavior changed · inferred
Fixed
- Percent-encode
?,#,\and a leading//in the request path when buildingrequest.url, and\and a leading//inurl_path_for#3671. behavior changed · inferred - Use the byte length for
Content-Lengthwhen the response body is a typed or multidimensionalmemoryview#3622. - Include
HEADin theAllowheader ofHTTPEndpoint405 responses whenGETis defined #3585. - Match host names case-insensitively in
Hostrouting andTrustedHostMiddleware#3542. - Preserve every existing
Varyheader inMutableHeaders.add_vary_header(), used byGZipMiddlewareandSessionMiddleware#3675.
Full changelog: 1.8.0...1.9.0