[PATCH 5 of 6] tests: enable HTTP digest testing

Yuya Nishihara yuya at tcha.org
Wed Feb 6 07:33:16 EST 2019


On Tue, 05 Feb 2019 21:35:48 -0500, Matt Harbison wrote:
> # HG changeset patch
> # User Matt Harbison <matt_harbison at yahoo.com>
> # Date 1549403239 18000
> #      Tue Feb 05 16:47:19 2019 -0500
> # Node ID 766e1b887a85c352e10381e30f3caaae320483e2
> # Parent  1a4bd7696b7e12673ddc46733babd15151f00e05
> tests: enable HTTP digest testing

Queued the series, thanks.

>  def perform_authentication(hgweb, req, op):
>      auth = req.headers.get(b'Authorization')
> +
> +    if req.headers.get(b'X-HgTest-AuthType') == b'Digest':
> +        global digest

>  def extsetup(ui):
>      common.permhooks.insert(0, perform_authentication)
> +
> +    global digest

Nit: these global aren't needed. removed in flight.


More information about the Mercurial-devel mailing list