Skip to content

Commit

Permalink
Update superset/tasks/utils.py
Browse files Browse the repository at this point in the history
Co-authored-by: Pat Heard <[email protected]>
  • Loading branch information
nsivarajan and patheard authored Nov 28, 2024
1 parent 5c6106d commit e6a2aa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/tasks/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def fetch_csrf_token(
data = json.loads(body)
res = {"X-CSRF-Token": data["result"]}
if session_cookie is not None:
res["Cookie"] = f"session={session_cookie}"
res["Cookie"] = f"{session_cookie_name}={session_cookie}"
return res

logger.error("Error fetching CSRF token, status code: %s", response.status)
Expand Down

0 comments on commit e6a2aa5

Please sign in to comment.