mercurial/hgweb/hgweb_mod.py
changeset 7563 bbcd2dea19fe
parent 7562 b663b5563de7
child 7575 3ccaefc84f45
--- a/mercurial/hgweb/hgweb_mod.py	Sat Jan 03 20:33:19 2009 +0100
+++ b/mercurial/hgweb/hgweb_mod.py	Sat Jan 03 20:50:06 2009 +0100
@@ -289,7 +289,7 @@
             raise ErrorResponse(HTTP_UNAUTHORIZED, 'read not authorized')
 
         if op == 'pull' and not self.allowpull:
-            raise ErrorResponse(HTTP_OK, '')
+            raise ErrorResponse(HTTP_UNAUTHORIZED, 'pull not authorized')
         # op is None when checking allow/deny_read permissions for a web-browser request
         elif op == 'pull' or op is None:
             return