Skip to content

Commit e9ab06f

Browse files
mcgwizchimurai
authored andcommitted
Fix bug in header manipulation example
1 parent 84bfa46 commit e9ab06f

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)