# Uvicorn 0.45.0 — Version 0.45.0 - Product: Uvicorn (https://whatsnew.fyi/product/uvicorn) - Vendor: Encode - Date: 2026-04-21 - Version: 0.45.0 - Original notes: https://github.com/Kludex/uvicorn/releases/tag/0.45.0 - Permalink: https://whatsnew.fyi/product/uvicorn/releases/0.45.0 What's New is an index, not a publisher: every entry below links to the vendor's own release notes, which are the authoritative source. Entries are labelled where they are hand-curated sample data, pre-releases, or drawn from a secondary source such as a developer blog. Reuse: the summaries, labels and curation here are © What's New. Quote freely with attribution and a link back; wholesale republication of the corpus is not permitted — terms: https://whatsnew.fyi/terms. The vendors' own release notes remain their publishers'. --- - **changed** — Preserve forwarded client ports in proxy headers middleware - **added** — Accept os.PathLike for log_config - **changed** — Accept log_level strings case-insensitively - **added** — Raise helpful ImportError when PyYAML is missing for YAML log config - **fixed** — Revert empty context for ASGI runs - **added** — Add --reset-contextvars flag to isolate ASGI request context - **fixed** — Revert emission of http.disconnect on server shutdown for streaming responses ##### What's Changed * Preserve forwarded client ports in proxy headers middleware by @Kludex in https://github.com/Kludex/uvicorn/pull/2903 * Accept `os.PathLike` for `log_config` by @Kludex in https://github.com/Kludex/uvicorn/pull/2905 * Accept `log_level` strings case-insensitively by @Kludex in https://github.com/Kludex/uvicorn/pull/2907 * Raise helpful `ImportError` when PyYAML is missing for YAML log config by @Kludex in https://github.com/Kludex/uvicorn/pull/2906 * Revert empty context for ASGI runs by @Kludex in https://github.com/Kludex/uvicorn/pull/2911 * Add `--reset-contextvars` flag to isolate ASGI request context by @Kludex in https://github.com/Kludex/uvicorn/pull/2912 * Revert "Emit `http.disconnect` on server shutdown for streaming responses" (#2829) by @Kludex in https://github.com/Kludex/uvicorn/pull/2913 ##### New Contributors * @Krishnachaitanyakc made their first contribution in https://github.com/Kludex/uvicorn/pull/2870 **Full Changelog**: https://github.com/Kludex/uvicorn/compare/0.44.0...0.45.0