Skip to content

Commit 806b168

Browse files
max630gitster
authored andcommitted
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 <[email protected]> Signed-off-by: Max Kirillov <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 574c513 commit 806b168

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/t5562-http-backend-content-length.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ test_expect_success 'CONTENT_LENGTH overflow ssite_t' '
155155

156156
test_expect_success 'empty CONTENT_LENGTH' '
157157
env \
158-
QUERY_STRING=/repo.git/HEAD \
159-
PATH_TRANSLATED="$PWD"/.git/HEAD \
158+
QUERY_STRING="service=git-receive-pack" \
159+
PATH_TRANSLATED="$PWD"/.git/info/refs \
160160
GIT_HTTP_EXPORT_ALL=TRUE \
161161
REQUEST_METHOD=GET \
162162
CONTENT_LENGTH="" \

0 commit comments

Comments
 (0)