From 669ef91e19fa0d9de045a0981c3bf92cbd2425b6 Mon Sep 17 00:00:00 2001 From: Le Vivilet Date: Fri, 27 Dec 2024 11:11:29 +0100 Subject: [PATCH] feature: support http range requests in electron --- .../src/parts/WebViewProtocol/WebViewProtocol.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/preview-process/src/parts/WebViewProtocol/WebViewProtocol.ts b/packages/preview-process/src/parts/WebViewProtocol/WebViewProtocol.ts index 651330f2..967c1ea2 100644 --- a/packages/preview-process/src/parts/WebViewProtocol/WebViewProtocol.ts +++ b/packages/preview-process/src/parts/WebViewProtocol/WebViewProtocol.ts @@ -5,7 +5,7 @@ import * as GetPathName from '../GetPathName/GetPathName.ts' import * as GetResponse from '../GetResponse/GetResponse.ts' import * as SerializeResponse from '../SerializeResponse/SerializeResponse.ts' -export const getResponse = async (method: string, url: string): Promise => { +export const getResponse = async (method: string, url: string, headers?: any): Promise => { const info = GetInfo.getInfo(url) let pathName = GetPathName.getPathName2(url) if (pathName === '/') { @@ -14,7 +14,7 @@ export const getResponse = async (method: string, url: string): Promise