]> git.ipfire.org Git - thirdparty/git.git/commitdiff
http-backend test: make empty CONTENT_LENGTH test more realistic
authorMax Kirillov <max@max630.net>
Tue, 11 Sep 2018 20:33:36 +0000 (23:33 +0300)
committerJunio C Hamano <gitster@pobox.com>
Tue, 11 Sep 2018 21:01:01 +0000 (14:01 -0700)
This is a test of smart HTTP, so it should use the smart HTTP endpoints
(e.g. /info/refs?service=git-receive-pack), not dumb HTTP (HEAD).

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Max Kirillov <max@max630.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5562-http-backend-content-length.sh

index f94d01f69e5cb9565540411de2c09df92262b9c3..b24d8b05a498674612870a133e1a4fc4a37bd5d3 100755 (executable)
@@ -155,8 +155,8 @@ test_expect_success 'CONTENT_LENGTH overflow ssite_t' '
 
 test_expect_success 'empty CONTENT_LENGTH' '
        env \
-               QUERY_STRING=/repo.git/HEAD \
-               PATH_TRANSLATED="$PWD"/.git/HEAD \
+               QUERY_STRING="service=git-receive-pack" \
+               PATH_TRANSLATED="$PWD"/.git/info/refs \
                GIT_HTTP_EXPORT_ALL=TRUE \
                REQUEST_METHOD=GET \
                CONTENT_LENGTH="" \