-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
"raw" view is not raw, adds extra backslash #5470
Comments
Raw mode currently escapes unprintable characters as well as backslashes so that the representation is unambiguous. I do agree though that the example you are showing is all but optimal, maybe we should just switch to rendering unprintable characters as �. |
That sounds reasonable to me. Text bodies would then be rendered 100% correctly (which I think is very important) and binary bodies would contain � as one would kind of expect (I don't think a lot of people would inspect binary bodies for anything other than text they contain [we could additionally also add a |
It was a breaking change. Removing "strutils.bytes_to_escaped_str(data, True)" may force one to set PYTHONUTF8. |
Could you clarify please why/under what circumstances you need to set
PYTHONUTF8? :)
…On Wed, Oct 11, 2023, 17:56 tss008 ***@***.***> wrote:
It was a breaking change. Removing "strutils.bytes_to_escaped_str(data,
True)" may force one to set PYTHONUTF8.
—
Reply to this email directly, view it on GitHub
<#5470 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHY2PX7YJLAJIOM5VUTRVDX626RRANCNFSM54HHHPXQ>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
Here you go. The following tests were performed on two Windows 10 machines using the attached file
stdout.log contains:
|
Problem Description
I just noticed during #5469 (comment)
Steps to reproduce the behavior:
http.txt
ncat -l 1337 < http.txt
mitmproxy
curl --proxy localhost:8080 http://127.0.0.1:1337
raw is
\\
:hex:
System Information
The text was updated successfully, but these errors were encountered: