Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions css-reports/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ async def get_msl_context(
"""Get the required context headers, data and cookies to make a request to MSL."""

BASE_COOKIES: Mapping[str, str] = {
".ASPXAUTH": auth_cookie,
".AspNet.SharedCookie": auth_cookie,
}

data_fields: dict[str, str] = {}
Expand All @@ -60,7 +60,7 @@ async def get_msl_context(
cookie_morsel: Morsel[str] | None = field_data.cookies.get(cookie)
if cookie_morsel is not None:
cookies[cookie] = cookie_morsel.value
cookies[".ASPXAUTH"] = auth_cookie
cookies[".AspNet.SharedCookie"] = auth_cookie

if "Login" in data_response.title.string: # type: ignore[union-attr, operator]
print("Redirected to login page!")
Expand Down
Loading