diff options
Diffstat (limited to 'cherrypy/lib/cptools.py')
-rw-r--r-- | cherrypy/lib/cptools.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cherrypy/lib/cptools.py b/cherrypy/lib/cptools.py index e3125d44..2ad5a44d 100644 --- a/cherrypy/lib/cptools.py +++ b/cherrypy/lib/cptools.py @@ -601,11 +601,11 @@ class MonitoredHeaderMap(_httputil.HeaderMap): self.accessed_headers.add(key) return _httputil.HeaderMap.get(self, key, default=default) - if hasattr(_httputil.HeaderMap, 'has_key'): + if hasattr({}, 'has_key'): # Python 2 def has_key(self, key): self.accessed_headers.add(key) - return self.has_key(key) # noqa: W601 + return _httputil.HeaderMap.has_key(self, key) # noqa: W601 def autovary(ignore=None, debug=False): |