Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
http-backend test: make empty CONTENT_LENGTH test more realistic
author
Max Kirillov
<max@max630.net>
Tue, 11 Sep 2018 20:33:36 +0000
(23:33 +0300)
committer
Junio 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
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
574c513
)
diff --git
a/t/t5562-http-backend-content-length.sh
b/t/t5562-http-backend-content-length.sh
index f94d01f69e5cb9565540411de2c09df92262b9c3..b24d8b05a498674612870a133e1a4fc4a37bd5d3 100755
(executable)
--- 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="" \