Skip to content

Commit

Permalink
fix(tests): Django 2.0 and 2.1 compatible csrf token extraction (#1052)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuarli committed Aug 5, 2021
1 parent 76c33bb commit 5d69561
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _integration-test/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ login () {
exit -1
fi

CSRF_TOKEN_FOR_LOGIN=$(curl $SENTRY_TEST_HOST -sL -c "$COOKIE_FILE" | awk -F "'" '
CSRF_TOKEN_FOR_LOGIN=$(curl $SENTRY_TEST_HOST -sL -c "$COOKIE_FILE" | awk -F "['\"]" '
/csrfmiddlewaretoken/ {
print $4 "=" $6;
exit;
Expand Down

0 comments on commit 5d69561

Please sign in to comment.