Skip to content

Commit

Permalink
fix: dev server proxy with onProxyRes (#5202)
Browse files Browse the repository at this point in the history
  • Loading branch information
zthxxx committed Aug 11, 2020
1 parent 0001cbe commit a510bc0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/server/src/Server/Server.ts
Expand Up @@ -278,6 +278,7 @@ class Server {
: proxyConfig.target;
const realUrl = new URL(req.url || '', target)?.href || '';
proxyRes.headers['x-real-url'] = realUrl;
proxyConfig.onProxyRes?.(proxyRes, req, res);
},
});
}
Expand Down

1 comment on commit a510bc0

@ycjcl868
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 2.

Benchmark suite Current: a510bc0 Previous: 0001cbe Ratio
ssr#normal / 690 ops/sec (±94.00%) 1497 ops/sec (±2.86%) 2.17

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.