tests/test-http-bundle1.t
changeset 41071 28a4fb793ba1
parent 40440 69d4c8c5c25e
child 41598 549af2fa089f
equal deleted inserted replaced
41070:f2601cbce209 41071:28a4fb793ba1
   184   >         raise common.ErrorResponse(common.HTTP_UNAUTHORIZED, b'who',
   184   >         raise common.ErrorResponse(common.HTTP_UNAUTHORIZED, b'who',
   185   >                 [(b'WWW-Authenticate', b'Basic Realm="mercurial"')])
   185   >                 [(b'WWW-Authenticate', b'Basic Realm="mercurial"')])
   186   >     if base64.b64decode(auth.split()[1]).split(b':', 1) != [b'user',
   186   >     if base64.b64decode(auth.split()[1]).split(b':', 1) != [b'user',
   187   >                                                             b'pass']:
   187   >                                                             b'pass']:
   188   >         raise common.ErrorResponse(common.HTTP_FORBIDDEN, b'no')
   188   >         raise common.ErrorResponse(common.HTTP_FORBIDDEN, b'no')
   189   > def extsetup():
   189   > def extsetup(ui):
   190   >     common.permhooks.insert(0, perform_authentication)
   190   >     common.permhooks.insert(0, perform_authentication)
   191   > EOT
   191   > EOT
   192   $ hg serve --config extensions.x=userpass.py -p $HGPORT2 -d --pid-file=pid \
   192   $ hg serve --config extensions.x=userpass.py -p $HGPORT2 -d --pid-file=pid \
   193   >    --config server.preferuncompressed=True \
   193   >    --config server.preferuncompressed=True \
   194   >    --config web.push_ssl=False --config web.allow_push=* -A ../access.log
   194   >    --config web.push_ssl=False --config web.allow_push=* -A ../access.log