Mercurial > public > mercurial-scm > hg-stable
diff tests/test-http-protocol.t @ 37012:5890e5872f36
hgweb: allow defining Server response header for HTTP server
By default, the string contains the Python version. Server
operators may want to change this.
Because we like deterministic tests, we change the test harness
to always set this value to a known string. Various globs over
the server header have now been removed.
# no-check-commit because we add version_string()
Differential Revision: https://phab.mercurial-scm.org/D2840
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Tue, 13 Mar 2018 09:45:56 -0700 |
parents | 16203c6079e7 |
children | fc8939825632 |
line wrap: on
line diff
--- a/tests/test-http-protocol.t Tue Mar 13 08:58:52 2018 -0700 +++ b/tests/test-http-protocol.t Tue Mar 13 09:45:56 2018 -0700 @@ -50,7 +50,7 @@ 200 Script output follows content-type: application/mercurial-0.1 date: $HTTP_DATE$ - server: * (glob) + server: testing stub value transfer-encoding: chunked Server should send application/mercurial-0.1 when client says it wants it @@ -59,7 +59,7 @@ 200 Script output follows content-type: application/mercurial-0.1 date: $HTTP_DATE$ - server: * (glob) + server: testing stub value transfer-encoding: chunked Server should send application/mercurial-0.2 when client says it wants it @@ -68,14 +68,14 @@ 200 Script output follows content-type: application/mercurial-0.2 date: $HTTP_DATE$ - server: * (glob) + server: testing stub value transfer-encoding: chunked $ get-with-headers.py --hgproto '0.1 0.2' --headeronly $LOCALIP:$HGPORT '?cmd=getbundle&heads=e93700bd72895c5addab234c56d4024b487a362f&common=0000000000000000000000000000000000000000' - 200 Script output follows content-type: application/mercurial-0.2 date: $HTTP_DATE$ - server: * (glob) + server: testing stub value transfer-encoding: chunked Requesting a compression format that server doesn't support results will fall back to 0.1 @@ -84,7 +84,7 @@ 200 Script output follows content-type: application/mercurial-0.1 date: $HTTP_DATE$ - server: * (glob) + server: testing stub value transfer-encoding: chunked #if zstd @@ -106,7 +106,7 @@ content-length: 41 content-type: application/mercurial-0.1 date: $HTTP_DATE$ - server: * (glob) + server: testing stub value e93700bd72895c5addab234c56d4024b487a362f