diff -r be384a2052aa -r 92e24a139ecc mercurial/hgweb/server.py --- a/mercurial/hgweb/server.py Tue Nov 05 08:42:42 2019 -0800 +++ b/mercurial/hgweb/server.py Thu Nov 07 08:58:26 2019 +0100 @@ -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