mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-25 17:25:57 +03:00
[PR #1124] [MERGED] Fixing MsgPack headers type and support mobile SignalR #2889
Labels
No labels
SSO
Third party
better for forum
bug
bug
documentation
duplicate
enhancement
future Vault
future Vault
future Vault
good first issue
help wanted
low priority
notes
pull-request
question
troubleshooting
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vaultwarden#2889
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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/dani-garcia/vaultwarden/pull/1124
Author: @aaxdev
Created: 8/31/2020
Status: ✅ Merged
Merged: 9/3/2020
Merged by: @dani-garcia
Base:
master← Head:fix/support-mobile-signalr-msgpack📝 Commits (2)
c59cfe3Fix MsgPack headers and support mobile SignalR260ffeeImproving code📊 Changes
1 file changed (+37 additions, -29 deletions)
View changed files
📝
src/api/notifications.rs(+37 -29)📄 Description
The type of the field "headers" in MsgPack structure seems to be a Map instead of an Array.
This cause crashes with the package SignalR C# client, but not with the Typescript one used by desktop/browser clients.
The package SignalR is also checking if the client is a browser, and will set a header value or a query parameter according the case (see here).
So, a dedicated function to resolve any of them seemed better.
Now notifications should works with any SignalR/MsgPack packages, i'm needing this to continue to implement notifications on mobile app.
Thanks @BlackDex for helping about research and for the code improvement, i'm new with the rust lang.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
registerendpoint toidentity#3186