Skip to content

Commit f01dea1

Browse files
authored
Fix bug in header manipulation example (chimurai#967)
Thanks!
1 parent 84bfa46 commit f01dea1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

recipes/response-interceptor.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ const proxy = createProxyMiddleware({
158158
proxyRes: responseInterceptor(async (responseBuffer, proxyRes, req, res) => {
159159
res.removeHeader('content-security-policy'); // Remove the Content Security Policy header
160160
res.setHeader('HPM-Header', 'Intercepted by HPM'); // Set a new header and value
161+
return responseBuffer;
161162
}),
162163
},
163164
});

0 commit comments

Comments
 (0)