diff --git a/src/flask/app.py b/src/flask/app.py index 1dec5d6d..6049df1d 100644 --- a/src/flask/app.py +++ b/src/flask/app.py @@ -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)