-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
85426: cli: teach decode-proto to handle Chrome protos r=andreimatei a=andreimatei This patch teaches `cockroach debug decode-protos` to help with replaying HTTP network requests captured by Chrome through its "copy as cURL" feature. Chrome inexplicably seems to mess up when copying our requests that POST protos: it encodes the raw bytes as UTF-8, which makes the POST data fail to decode as a proto. This patch makes decode-proto recognize such an encoding. The new fields --single --binary --out=<file> are added to help the use case of decoding a single proto and writing it to a binary file that can then be read by curl. Release note: None Co-authored-by: Andrei Matei <[email protected]>
- Loading branch information
Showing
3 changed files
with
195 additions
and
32 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