Fix text decoding when no content-type

Closes https://feedback.yaak.app/p/not-rendering-response
This commit is contained in:
Gregory Schier
2025-04-21 06:54:03 -07:00
parent faca29c789
commit 6d4fdc91fe
4 changed files with 6 additions and 16 deletions

View File

@@ -16,7 +16,7 @@ export function BinaryViewer({ response }: Props) {
const contentType = getContentTypeFromHeaders(response.headers) ?? 'unknown';
// Wait until the response has been fully-downloaded
if (response.state === 'closed') {
if (response.state !== 'closed') {
return (
<EmptyStateText>
<LoadingIcon size="sm" />