mirror of
https://github.com/vee1e/mitmproxy.git
synced 2026-09-01 18:27:18 +00:00
Fix blank lines in content renderer (#8248)
This commit is contained in:
parent
12a292c2e7
commit
d87f2fd95e
4 changed files with 15 additions and 5 deletions
|
|
@ -15,6 +15,8 @@
|
|||
([#8233](https://github.com/mitmproxy/mitmproxy/pull/8233), @ariel42)
|
||||
- mitmweb: Fix AVIF images and `image/vnd.microsoft.icon` favicons not rendering in the response tab.
|
||||
([#8232](https://github.com/mitmproxy/mitmproxy/pull/8232), @ariel42)
|
||||
- mitmweb: Fix correctly displaying multiple blank lines in content renderer.
|
||||
([#8248](https://github.com/mitmproxy/mitmproxy/pull/8248), @vincentdehaan)
|
||||
|
||||
## 12 May 2026: mitmproxy 12.2.3
|
||||
|
||||
|
|
|
|||
|
|
@ -79,7 +79,9 @@ exports[`HttpMessage 1`] = `
|
|||
<div>
|
||||
rawdata
|
||||
</div>
|
||||
<div />
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</pre>
|
||||
</div>
|
||||
</DocumentFragment>
|
||||
|
|
@ -286,7 +288,9 @@ exports[`HttpMessage 3`] = `
|
|||
<div>
|
||||
rawdata
|
||||
</div>
|
||||
<div />
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</pre>
|
||||
</div>
|
||||
</DocumentFragment>
|
||||
|
|
@ -371,7 +375,9 @@ exports[`HttpMessage 4`] = `
|
|||
<div>
|
||||
rawdata
|
||||
</div>
|
||||
<div />
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</pre>
|
||||
</div>
|
||||
</DocumentFragment>
|
||||
|
|
|
|||
|
|
@ -15,7 +15,9 @@ exports[`ContentRenderer 1`] = `
|
|||
/>
|
||||
Show more
|
||||
</button>
|
||||
<div />
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</pre>
|
||||
</DocumentFragment>
|
||||
`;
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ const ContentRenderer = React.memo(function ContentRenderer({
|
|||
Show more
|
||||
</button>
|
||||
) : (
|
||||
<div key={i}>{line}</div>
|
||||
<div key={i}>{line || " "}</div>
|
||||
),
|
||||
)}
|
||||
</pre>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue