make no_auto_head comparison more explicit
This commit is contained in:
parent
c6c207175c
commit
2971c71fc7
1 changed files with 1 additions and 1 deletions
|
|
@ -1088,7 +1088,7 @@ class Flask(Scaffold):
|
|||
# own handling for HEAD.
|
||||
only_get = methods == {"GET", "OPTIONS"}
|
||||
|
||||
if only_get and no_auto_head is not None:
|
||||
if only_get and no_auto_head is True:
|
||||
rule.methods.discard("HEAD") # type: ignore
|
||||
|
||||
self.url_map.add(rule)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue