Skip to content

Commit 7c6b620

Browse files
authored
Merge pull request #71 from mjyc/fix-gitlabimport
Fix issue#70
2 parents ea2602f + 6b0c8bf commit 7c6b620

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)