Skip to content

Commit 0d18d59

Browse files
committed
fix: const
1 parent 8ebadf5 commit 0d18d59

File tree

3 files changed

+6
-15
lines changed

3 files changed

+6
-15
lines changed

src/Composite.Subtitles.response.dev.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,8 @@ import Composite from "./class/Composite.mjs";
1414
const url = new URL($request.url);
1515
Console.info(`url: ${url.toJSON()}`);
1616
// 获取连接参数
17-
const METHOD = $request.method,
18-
HOST = url.hostname,
19-
PATH = url.pathname,
20-
PATHs = url.pathname.split("/").filter(Boolean);
21-
Console.info(`METHOD: ${METHOD}, HOST: ${HOST}, PATH: ${PATH}`);
17+
const PATHs = url.pathname.split("/").filter(Boolean);
18+
Console.info(`PATHs: ${PATHs}`);
2219
// 解析格式
2320
let FORMAT = ($response.headers?.["Content-Type"] ?? $response.headers?.["content-type"])?.split(";")?.[0];
2421
if (FORMAT === "application/octet-stream" || FORMAT === "text/plain") FORMAT = detectFormat(url, $response?.body, FORMAT);

src/Composite.Subtitles.response.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,8 @@ Console.debug = () => {};
1515
const url = new URL($request.url);
1616
Console.info(`url: ${url.toJSON()}`);
1717
// 获取连接参数
18-
const METHOD = $request.method,
19-
HOST = url.hostname,
20-
PATH = url.pathname,
21-
PATHs = url.pathname.split("/").filter(Boolean);
22-
Console.info(`METHOD: ${METHOD}, HOST: ${HOST}, PATH: ${PATH}`);
18+
const PATHs = url.pathname.split("/").filter(Boolean);
19+
Console.info(`PATHs: ${PATHs}`);
2320
// 解析格式
2421
let FORMAT = ($response.headers?.["Content-Type"] ?? $response.headers?.["content-type"])?.split(";")?.[0];
2522
if (FORMAT === "application/octet-stream" || FORMAT === "text/plain") FORMAT = detectFormat(url, $response?.body, FORMAT);

src/External.Subtitles.response.dev.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,8 @@ import Composite from "./function/Composite.mjs";
1212
const url = new URL($request.url);
1313
Console.info(`url: ${url.toJSON()}`);
1414
// 获取连接参数
15-
const METHOD = $request.method,
16-
HOST = url.hostname,
17-
PATH = url.pathname,
18-
PATHs = url.pathname.split("/").filter(Boolean);
19-
Console.info(`METHOD: ${METHOD}, HOST: ${HOST}, PATH: ${PATH}`);
15+
const PATHs = url.pathname.split("/").filter(Boolean);
16+
Console.info(`PATHs: ${PATHs}`);
2017
// 解析格式
2118
let FORMAT = ($response.headers?.["Content-Type"] ?? $response.headers?.["content-type"])?.split(";")?.[0];
2219
if (FORMAT === "application/octet-stream" || FORMAT === "text/plain") FORMAT = detectFormat(URL, $response?.body, FORMAT);

0 commit comments

Comments
 (0)