Skip to content

Commit 4e5f0f9

Browse files
committed
maven-helper: cope with MITM web caches
Ignacio Arganda-Carreras reported that one shy colleague of his encountered a problem with building Fiji. The reason was identified as a different HTTP version being reported than the maven helper expected, due to a transparent web cache reporting version 1.0 while the ImageJ artifact repository server reports 1.1. Let's be a little bit more lenient and allow for HTTP/1.<any-digit>. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent 474b759 commit 4e5f0f9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

maven-helper.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ project_url () {
9898
project_url="$root_url/releases/$infix"
9999
header=$(curl -Is "$project_url/")
100100
case "$header" in
101-
"HTTP/1.1 200 OK"*)
101+
HTTP/1.?" 200 OK"*)
102102
;;
103103
*)
104104
project_url="$root_url/thirdparty/$infix"

0 commit comments

Comments
 (0)