mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-11-23 16:54:12 +01:00
Fix ephemeral response body reading
This commit is contained in:
1 parent
8fe50959b9
commit
b3414ee60f
7 files changed
+11
-13
No files matched your search
@@ -4,14 +4,14 @@ import type { ServerSentEvent } from '@yaakapp-internal/sse';
|
||||
import { invokeCmd } from './tauri';
|
||||
|
||||
export async function getResponseBodyText({
|
||||
responseId,
|
||||
response,
|
||||
filter,
|
||||
}: {
|
||||
responseId: string;
|
||||
response: HttpResponse;
|
||||
filter: string | null;
|
||||
}): Promise<string | null> {
|
||||
const result = await invokeCmd<FilterResponse>('cmd_http_response_body', {
|
||||
responseId,
|
||||
response,
|
||||
filter,
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user