forked from connectrpc/connect-go
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use registration order to prioritize client Accept-Encoding (connectr…
…pc#269) We're currently randomizing the client's list of accepted encodings when sending them to the server. This is bad, since the server uses the first algorithm it recognizes: ideally the client would send them in preference order. This PR changes the client to treat the last registered algorithm as the most preferred. To minimize divergence, we do the same for handlers. Fixes connectrpc#259.
- Loading branch information
1 parent
9b9d9e8
commit 11020f9
Showing
4 changed files
with
32 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters