Skip to content

Enable cookies#759

Merged
ArnyminerZ merged 1 commit into
mainfrom
758-support-for-cookies
Dec 11, 2025
Merged

Enable cookies#759
ArnyminerZ merged 1 commit into
mainfrom
758-support-for-cookies

Conversation

@ArnyminerZ
Copy link
Copy Markdown
Member

Purpose

This PR enables basic cookies support, to support use-cases like #758

Short description

  • Added basic cookies support: cookies will be kept on memory, and erased after the app restarts.

This should fix the issue of #758, because it would keep the cookies after redirecting, but will have them clear after each restart.

Checklist

  • The PR has a proper title, description and label.
  • I have self-reviewed the PR.
  • I have added documentation to complex functions and functions that can be used by other modules.
  • I have added reasonable tests or consciously decided to not add tests.

Signed-off-by: Arnau Mora <arnyminerz@proton.me>
@ArnyminerZ ArnyminerZ linked an issue Dec 11, 2025 that may be closed by this pull request
@ArnyminerZ ArnyminerZ added the pr-feature Implements a new feature or functionality (only for PRs) label Dec 11, 2025
@ArnyminerZ ArnyminerZ self-assigned this Dec 11, 2025
@ArnyminerZ ArnyminerZ requested a review from Copilot December 11, 2025 05:54
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enables basic HTTP cookie support to address issue #758, which involves cookie handling during HTTP redirects. The implementation uses Ktor's HttpCookies plugin with default in-memory storage, ensuring cookies persist across redirect chains but are cleared when the application restarts.

  • Adds the HttpCookies plugin to the HTTP client configuration with default settings
  • Cookies are stored in memory only and cleared on app restart
  • Enables cookie persistence across redirects handled by CalendarFetcher

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Member

@sunkup sunkup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's see if it helps 👍

@ArnyminerZ ArnyminerZ merged commit d1fab49 into main Dec 11, 2025
11 checks passed
@ArnyminerZ ArnyminerZ deleted the 758-support-for-cookies branch December 11, 2025 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-feature Implements a new feature or functionality (only for PRs)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for cookies

3 participants