Skip to content
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.

Commit

Permalink
Merge pull request #53 from minacle/ignore-expdate
Browse files Browse the repository at this point in the history
Never care about cookie expiration date
  • Loading branch information
RyuaNerin authored Nov 25, 2021
2 parents 4afed0e + 2f64af1 commit 5e88518
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions StreamingRespirator/Core/Windows/LoginWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ private static async Task<string> ParseInner(Stream stream, string text)
{
//Discard = s[1] == "TRUE",
Secure = s[3] == "TRUE",
Expires = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc).AddSeconds(int.Parse(s[4])).ToLocalTime(),
Expires = DateTime.MaxValue,
};

cc.Add(cookie);
Expand Down Expand Up @@ -164,7 +164,7 @@ private static async Task<string> ParseInner(Stream stream, string text)
{
HttpOnly = jc.HttpOnly,
Secure = jc.Secure,
Expires = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc).AddSeconds(jc.ExpirationDate).ToLocalTime(),
Expires = DateTime.MaxValue,
};

cc.Add(cookie);
Expand Down

0 comments on commit 5e88518

Please sign in to comment.