diff --git a/config.yaml b/config.yaml index 0132902..870d181 100644 --- a/config.yaml +++ b/config.yaml @@ -32,7 +32,7 @@ catch_rules: #转换规则 - search: _ #ClientWorker语法糖,匹配捕捉规则的路由 - replace: docroot/clientworker@2.1.0/doc/docs/.vitepress/dist + replace: docroot/clientworker@2.1.1/doc/docs/.vitepress/dist - search: ^https\:\/\/docroot diff --git a/cw.js b/cw.js index f9fd14f..ecd56cb 100644 --- a/cw.js +++ b/cw.js @@ -4446,6 +4446,7 @@ const rebuildheaders = (re, headers) => { } return nHeaders } + return new Headers(re.headers) } /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (rebuild);