Skip to content

Air 0.48.1

Latest

Choose a tag to compare

@audreyfeldroy audreyfeldroy released this 03 Apr 03:39
· 20 commits to main since this release
Immutable release. Only release title and notes can be modified.
v0.48.1
06e4d97

Air sites now respond correctly to HTTP HEAD requests. If you use Facebook link previews, Twitter cards, Slack unfurls, or uptime monitors that send HEAD, they work on Air out of the box.

uv tool upgrade air

What's fixed

  • HTTP HEAD requests return 200 instead of 405. Every GET route (@app.page, @app.get, @router.page, @router.get) now responds to HEAD with the correct status, headers, and empty body. FastAPI's routing layer has never added HEAD to GET routes the way Starlette does. Air now restores that behavior in its own route class. (#1123)

  • Cleaner linter config for dependency injection. Air's ruff.toml now lists its immutable function calls (Depends, Query, Header, etc.) in extend-immutable-calls, removing the need for noqa: B008 comments throughout the codebase. (#1109)

Contributors

@audreyfeldroy (Audrey M. Roy Greenfeld) traced the HEAD bug to FastAPI's route initialization and wrote the fix.

@pydanny (Daniel Roy Greenfeld) cleaned up the doc build.

Thanks to @francisdbillones (Francis Billones) for adding extend-immutable-calls to the ruff config and cleaning up the noqa comments.