We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 894f5d7 commit 6b0c8bfCopy full SHA for 6b0c8bf
lib/git-issue/import-export.sh
@@ -93,10 +93,10 @@ rest_api_get()
93
trans_abort
94
fi
95
96
- if ! grep -q '^\(Status: 200\|HTTP/[[:digit:]].[[:digit:]] 200 OK\)' "$prefix-header" ; then
+ if ! grep -q '^\(Status: 200\|HTTP/[[:digit:]].[[:digit:]] 200 OK\|HTTP/[[:digit:]] 200\)' "$prefix-header" ; then
97
echo "$provider API communication failure" 1>&2
98
echo "URL: $url" 1>&2
99
- if grep -q '^\(Status: 4\|HTTP/[0-9].[0-9] 4\)' "$prefix-header" ; then
+ if grep -q '^\(Status: 4\|HTTP/[0-9].[0-9] 4\|HTTP/[0-9] 4\)' "$prefix-header" ; then
100
jq -r '.message' "$prefix-body" 1>&2
101
102
0 commit comments