Skip to content

Commit f6fed8c

Browse files
committed
feat: 支持使用环境变量 SUB_STORE_X_POWERED_BY 自定义响应头中的 X-Powered-By
1 parent 8a2100f commit f6fed8c

2 files changed

Lines changed: 3 additions & 2 deletions

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.44",
3+
"version": "2.20.45",
44
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.",
55
"main": "src/main.js",
66
"scripts": {

backend/src/vendor/express.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ export default function express({ substore: $, port, host }) {
99
'Access-Control-Allow-Methods': 'POST,GET,OPTIONS,PATCH,PUT,DELETE',
1010
'Access-Control-Allow-Headers':
1111
'Origin, X-Requested-With, Content-Type, Accept',
12-
'X-Powered-By': 'Sub-Store',
12+
'X-Powered-By':
13+
eval('process.env.SUB_STORE_X_POWERED_BY') || 'Sub-Store',
1314
};
1415

1516
// node support

0 commit comments

Comments
 (0)