@abtnode/router-provider 1.8.65-beta-f7af64a4 → 1.8.65-beta-db7f2529
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/nginx/index.js +3 -1
- package/package.json +6 -6
package/lib/nginx/index.js
CHANGED
|
@@ -464,7 +464,9 @@ class NginxProvider extends BaseProvider {
|
|
|
464
464
|
this._addCors({ location, corsAllowedOrigins, serverName, isDidAuthPath });
|
|
465
465
|
|
|
466
466
|
this._addCommonResHeaders(location, commonHeaders);
|
|
467
|
-
|
|
467
|
+
if (!cacheGroup && !suffix) {
|
|
468
|
+
this._addTailSlashRedirection(location, prefix); // Note: 末尾 "/" 的重定向要放在 CORS(OPTIONS) 响应之后, 这样不会影响 OPTIONS 的响应
|
|
469
|
+
}
|
|
468
470
|
|
|
469
471
|
if (did) {
|
|
470
472
|
location._add('set', `$did "${did}"`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abtnode/router-provider",
|
|
3
|
-
"version": "1.8.65-beta-
|
|
3
|
+
"version": "1.8.65-beta-db7f2529",
|
|
4
4
|
"description": "Routing engine implementations for abt node",
|
|
5
5
|
"author": "polunzh <polunzh@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/ArcBlock/blocklet-server#readme",
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
"url": "https://github.com/ArcBlock/blocklet-server/issues"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@abtnode/constant": "1.8.65-beta-
|
|
36
|
-
"@abtnode/logger": "1.8.65-beta-
|
|
37
|
-
"@abtnode/router-templates": "1.8.65-beta-
|
|
38
|
-
"@abtnode/util": "1.8.65-beta-
|
|
35
|
+
"@abtnode/constant": "1.8.65-beta-db7f2529",
|
|
36
|
+
"@abtnode/logger": "1.8.65-beta-db7f2529",
|
|
37
|
+
"@abtnode/router-templates": "1.8.65-beta-db7f2529",
|
|
38
|
+
"@abtnode/util": "1.8.65-beta-db7f2529",
|
|
39
39
|
"axios": "^0.27.2",
|
|
40
40
|
"debug": "^4.3.4",
|
|
41
41
|
"find-process": "^1.4.7",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"fs-extra": "^10.1.0",
|
|
63
63
|
"needle": "^3.1.0"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "b9cd53d1db3535a691aebed2ff6f9053376d46dc"
|
|
66
66
|
}
|