fix: error
This commit is contained in:
parent
3b32ba7244
commit
c9a3f7fda9
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "page-proxy",
|
||||
"version": "0.0.3",
|
||||
"version": "0.0.4",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"type": "module",
|
||||
|
@ -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 (
|
||||
|
Loading…
x
Reference in New Issue
Block a user