Skip to content

feat: add OPTIONS HTTP method support and apply minor code cleanup#19

Merged
DamianCzajkowski merged 1 commit intomainfrom
add-options-method-and-cleanup
Mar 24, 2026
Merged

feat: add OPTIONS HTTP method support and apply minor code cleanup#19
DamianCzajkowski merged 1 commit intomainfrom
add-options-method-and-cleanup

Conversation

@DamianCzajkowski
Copy link
Copy Markdown
Collaborator

Summary

  • Add OPTIONS to the list of allowed HTTP methods on the catch-all /{path:path} route, enabling CORS preflight and other OPTIONS-based requests.
  • Modernize type annotations in __main__.py by replacing Optional[X] with X | None (PEP 604) and removing the unused import.
  • Simplify an unnecessary f-string concatenation in utils.py.
  • Update corresponding test assertions to include OPTIONS in the expected methods list.

@DamianCzajkowski DamianCzajkowski merged commit a25b8e9 into main Mar 24, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants