Browse Source

日志问题处理

pull/375/head
王良 2 months ago
parent
commit
1e3123e93e
  1. 2
      packages/mitmproxy/src/lib/interceptor/impl/res/AfterOPTIONSHeaders.js

2
packages/mitmproxy/src/lib/interceptor/impl/res/AfterOPTIONSHeaders.js

@ -16,7 +16,7 @@ module.exports = {
}
// 替换响应头
if (responseReplaceApi.replaceResponseHeaders(headers, res, proxyRes)) {
if (responseReplaceApi.replaceResponseHeaders({ ...headers }, res, proxyRes)) {
res.setHeader('DS-AfterOPTIONSHeaders-Interceptor', true)
log.info('AfterOPTIONSHeaders intercept:', JSON.stringify(headers))
}

Loading…
Cancel
Save