summaryrefslogtreecommitdiff
path: root/t/t5562-http-backend-content-length.sh
diff options
context:
space:
mode:
authorMax Kirillov <max@max630.net>2018-09-11 20:33:36 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-09-11 21:01:01 (GMT)
commit806b1687bb2e0d6159a5dbfd8834047a92ab9190 (patch)
treece95a629fd3b186525954cbf748161312fef15ed /t/t5562-http-backend-content-length.sh
parent574c513e8dda5598e9e08e8ca2a048bf120a5709 (diff)
downloadgit-806b1687bb2e0d6159a5dbfd8834047a92ab9190.zip
git-806b1687bb2e0d6159a5dbfd8834047a92ab9190.tar.gz
git-806b1687bb2e0d6159a5dbfd8834047a92ab9190.tar.bz2
http-backend test: make empty CONTENT_LENGTH test more realistic
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>
Diffstat (limited to 't/t5562-http-backend-content-length.sh')
-rwxr-xr-xt/t5562-http-backend-content-length.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t5562-http-backend-content-length.sh b/t/t5562-http-backend-content-length.sh
index f94d01f..b24d8b0 100755
--- a/t/t5562-http-backend-content-length.sh
+++ b/t/t5562-http-backend-content-length.sh
@@ -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="" \