Skip to content

Commit 7171e59

Browse files
committed
the location could be lower case in header.
Signed-off-by: Tao Lin <[email protected]>
1 parent 4c96342 commit 7171e59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/login-hedgedoc-via-gitlab.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ function step3() {
100100
-H 'Accept-Language: en' \
101101
--data "grant_type=password&username=${username}&password=${password}" ${token} \
102102
-b $cookie -c $cookie \
103-
--insecure -D - | grep Location | cut -c11-)
103+
--insecure -D - | grep -i location | cut -c11-)
104104
header=${header//[$'\t\r\n']}
105105
if [ "$header" = "$GITLAB_CALLBACK_LOCATION" ]; then
106106
echo "same callback $header"

0 commit comments

Comments
 (0)