Skip to content

is_resource_modified() should work for methods besides GET #409

@zhangchunlin

Description

@zhangchunlin

werkzeug/werkzeug/http.py

Lines 893 to 894 in 5444a6f

if environ['REQUEST_METHOD'] not in ('GET', 'HEAD'):
return False

If the request method is post, but I want to return a different file every time, then this should not return false.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions