Skip to content

Throws errors if scope["method"] is missing #15

@simonw

Description

@simonw

I got this error:

  File "../site-packages/asgi_csrf.py", line 98, in app_wrapped_with_csrf
    if scope["method"] in {"GET", "HEAD", "OPTIONS", "TRACE"}:
KeyError: 'method'
ERROR:    Application startup failed. Exiting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions