Skip to content

Commit f8e9977

Browse files
Update cookie name
1 parent 193cf5f commit f8e9977

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

css-reports/report.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ async def get_msl_context(
3535
"""Get the required context headers, data and cookies to make a request to MSL."""
3636

3737
BASE_COOKIES: Mapping[str, str] = {
38-
".ASPXAUTH": auth_cookie,
38+
".AspNet.SharedCookie": auth_cookie,
3939
}
4040

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

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

0 commit comments

Comments
 (0)