make no_auto_head comparison more explicit

This commit is contained in:
malwaredllc 2022-01-05 12:49:50 -07:00
parent c6c207175c
commit 2971c71fc7

View file

@ -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)