mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-11 20:00:29 +01:00
[PR #245] [MERGED] Attach cookies to WS Upgrade #169
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/mountain-loop/yaak/pull/245
Author: @carterjc
Created: 7/22/2025
Status: ✅ Merged
Merged: 7/23/2025
Merged by: @gschier
Base:
main← Head:main📝 Commits (3)
b82ad57Attach cookies to WS Upgradeba9f74cMerge branch 'main' into main78a54b3Move reqwest_cookie_store to workspace dep📊 Changes
4 files changed (+64 additions, -7 deletions)
View changed files
📝
src-tauri/Cargo.lock(+1 -0)📝
src-tauri/Cargo.toml(+2 -1)📝
src-tauri/yaak-ws/Cargo.toml(+1 -0)📝
src-tauri/yaak-ws/src/commands.rs(+60 -6)📄 Description
WS requests currently don't interact with cookie jars (first reported here). Because the first leg of a WS connection is an HTTP Upgrade, this PR grabs the cookie jar, finds cookies that match the HTTP-variant of the WS URL, and inserts them into the request headers.
I also noticed that WS connection errors were being formatted in debug mode, so I modified that as well.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.