[PATCH 2 of 7] Make hg serve set the wsgi.url_scheme property correctly

Brendan Cully brendan at kublai.com
Fri Jul 13 00:52:38 CDT 2007


On Thursday, 12 July 2007 at 14:48, Wesley J. Landaker wrote:
> # HG changeset patch
> # User Wesley J. Landaker <wjl at icecavern.net>
> # Date 1184270316 21600
> # Node ID 8f430b1b3025cbd7735585a3ed3911289654e89f
> # Parent  be591b740e0fc4e6f61be673240f56e3aba4c31b
> Make hg serve set the wsgi.url_scheme property correctly.
> 
> This fixes the bug where hg serve with SSL will always detect the wrong
> urlbase for templates. This is also part of unifying the CGI interface
> and hg serve interface to both use standard wsgi.

In crew, thanks.

> -        env['wsgi.url_scheme'] = 'http'
> +        env['wsgi.url_scheme'] = type(self).url_scheme

I've reduced this to just self.url_scheme.


More information about the Mercurial-devel mailing list