-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use CRLF in NettyJsonToByteBufHandler #283
Use CRLF in NettyJsonToByteBufHandler #283
Conversation
Signed-off-by: Mikayla Thompson <[email protected]>
Signed-off-by: Mikayla Thompson <[email protected]>
Signed-off-by: Mikayla Thompson <[email protected]>
Signed-off-by: Mikayla Thompson <[email protected]>
Signed-off-by: Mikayla Thompson <[email protected]>
Codecov Report
@@ Coverage Diff @@
## main #283 +/- ##
============================================
+ Coverage 61.93% 62.00% +0.06%
- Complexity 617 618 +1
============================================
Files 82 82
Lines 3129 3140 +11
Branches 292 292
============================================
+ Hits 1938 1947 +9
- Misses 1014 1016 +2
Partials 177 177
Flags with carried forward coverage won't be shown. Click here to find out more.
|
meta.put("shadowResponse", jsonFromHttpData(triple.shadowResponseData, | ||
triple.shadowResponseDuration)); | ||
meta.put("targetResponse", jsonFromHttpData(triple.targetResponseData, | ||
triple.targetResponseDuration)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: This should be named a tuple
The backport to
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/backport-capture-and-replay-v0.1.0 capture-and-replay-v0.1.0
# Navigate to the new working tree
pushd ../.worktrees/backport-capture-and-replay-v0.1.0
# Create a new branch
git switch --create backport/backport-283-to-capture-and-replay-v0.1.0
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 92405b8e967d60455a7217980025bdd4cd4b25be
# Push it to GitHub
git push --set-upstream origin backport/backport-283-to-capture-and-replay-v0.1.0
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/backport-capture-and-replay-v0.1.0 Then, create a pull request where the |
(cherry picked from commit 92405b8)
…-to-capture-and-replay-v0.1.0 Backport #283 to capture-and-replay-v0.1.0
Signed-off-by: Mikayla Thompson [email protected]
Description
This PR includes three (related) categories of changes:
\n
) when formatting HTTP messages, but the spec is to use carriage return line feeds (\r\n
). This turned out to cause an issue in how we were parsing the HTTP message for the JSON, so rather than build in a workaround, I updated the code to use CRLFs.These three categories are broken out quite neatly in the commits:
the first two commits are related to number 3, the next accomplishes 1, the third deals with 2, and then the final commit updates the humanReadableLogs script for 1 and 2.
Issues Resolved
I haven't created an issue for this yet 😬
Testing
Manual, and updated the unit tests affected.
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.