diff --git a/mercurial/hgweb/server.py b/mercurial/hgweb/server.py
index be384a2052aa864733b3f75c357bb2bc7cd42ae4_bWVyY3VyaWFsL2hnd2ViL3NlcnZlci5weQ==..92e24a139eccdcfc290647dd3998244921ab931b_bWVyY3VyaWFsL2hnd2ViL3NlcnZlci5weQ== 100644
--- a/mercurial/hgweb/server.py
+++ b/mercurial/hgweb/server.py
@@ -160,7 +160,7 @@
             self.server.prefix + b'/'
         ):
             self._start_response(pycompat.strurl(common.statusmessage(404)), [])
-            if self.command == b'POST':
+            if self.command == r'POST':
                 # Paranoia: tell the client we're going to close the
                 # socket so they don't try and reuse a socket that
                 # might have a POST body waiting to confuse us. We do