Skip to content

Commit c419b55

Browse files
committed
feat: Node.js 环境支持使用环境变量 SUB_STORE_MAX_HEADER_SIZE 设置请求的 header 大小限制
1 parent 2317709 commit c419b55

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sub-store",
3-
"version": "2.20.38",
3+
"version": "2.20.39",
44
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.",
55
"main": "src/main.js",
66
"scripts": {

backend/src/vendor/open-api.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,9 @@ export function HTTP(defaultOptions = { baseURL: '' }) {
479479
},
480480
bodyTimeout: opts.timeout,
481481
headersTimeout: opts.timeout,
482+
maxHeaderSize:
483+
eval('process.env.SUB_STORE_MAX_HEADER_SIZE') ||
484+
32 * 1024,
482485
};
483486
const tlsOptions = {
484487
rejectUnauthorized:

0 commit comments

Comments
 (0)