mirror of
https://github.com/git/git
synced 2024-08-26 11:09:18 +00:00
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>
This commit is contained in:
parent
574c513e8d
commit
806b1687bb
|
@ -155,8 +155,8 @@ test_expect_success 'CONTENT_LENGTH overflow ssite_t' '
|
||||||
|
|
||||||
test_expect_success 'empty CONTENT_LENGTH' '
|
test_expect_success 'empty CONTENT_LENGTH' '
|
||||||
env \
|
env \
|
||||||
QUERY_STRING=/repo.git/HEAD \
|
QUERY_STRING="service=git-receive-pack" \
|
||||||
PATH_TRANSLATED="$PWD"/.git/HEAD \
|
PATH_TRANSLATED="$PWD"/.git/info/refs \
|
||||||
GIT_HTTP_EXPORT_ALL=TRUE \
|
GIT_HTTP_EXPORT_ALL=TRUE \
|
||||||
REQUEST_METHOD=GET \
|
REQUEST_METHOD=GET \
|
||||||
CONTENT_LENGTH="" \
|
CONTENT_LENGTH="" \
|
||||||
|
|
Loading…
Reference in a new issue