fix: error
This commit is contained in:
@@ -96,7 +96,7 @@ async function getTextFromStream(stream: Readable | IncomingMessage): Promise<st
|
||||
export async function getTextFromStreamAndAddStat(stream: Readable | IncomingMessage): Promise<{ html: string; contentLength: number }> {
|
||||
const html = await getTextFromStream(stream);
|
||||
const newHtml = addStat(html);
|
||||
const newContentLength = newHtml.length;
|
||||
const newContentLength = Buffer.byteLength(newHtml);
|
||||
return { html: newHtml, contentLength: newContentLength };
|
||||
}
|
||||
export const httpProxy = async (
|
||||
|
||||
Reference in New Issue
Block a user