Skip to content

Commit 6b0c8bf

Browse files
author
Michael Jae-Yoon Chung
committed
Fix gitlab export checking header bug
1 parent 894f5d7 commit 6b0c8bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/git-issue/import-export.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ rest_api_get()
9393
trans_abort
9494
fi
9595

96-
if ! grep -q '^\(Status: 200\|HTTP/[[:digit:]].[[:digit:]] 200 OK\)' "$prefix-header" ; then
96+
if ! grep -q '^\(Status: 200\|HTTP/[[:digit:]].[[:digit:]] 200 OK\|HTTP/[[:digit:]] 200\)' "$prefix-header" ; then
9797
echo "$provider API communication failure" 1>&2
9898
echo "URL: $url" 1>&2
99-
if grep -q '^\(Status: 4\|HTTP/[0-9].[0-9] 4\)' "$prefix-header" ; then
99+
if grep -q '^\(Status: 4\|HTTP/[0-9].[0-9] 4\|HTTP/[0-9] 4\)' "$prefix-header" ; then
100100
jq -r '.message' "$prefix-body" 1>&2
101101
fi
102102
trans_abort

0 commit comments

Comments
 (0)