diff options
author | Max Kirillov <max@max630.net> | 2018-09-11 23:33:36 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-09-11 14:01:01 -0700 |
commit | 806b1687bb2e0d6159a5dbfd8834047a92ab9190 (patch) | |
tree | ce95a629fd3b186525954cbf748161312fef15ed /t/t5562-http-backend-content-length.sh | |
parent | http-backend: allow empty CONTENT_LENGTH (diff) | |
download | tgif-806b1687bb2e0d6159a5dbfd8834047a92ab9190.tar.xz |
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-x | t/t5562-http-backend-content-length.sh | 4 |
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 f94d01f69e..b24d8b05a4 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="" \ |