We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 782cb3d commit b22f9e5Copy full SHA for b22f9e5
index.js
@@ -69,7 +69,7 @@ export function idempotencyMiddleware({
69
res.statusCode = 204
70
res.setHeader('X-Idempotency-Status', 'hit')
71
res.setHeader('Content-Type', 'text/plain; charset=utf-8')
72
- res.end()
+ res.end('') // Ensuring protocol consistency
73
} else {
74
// No cached response found: set up a post-response hook
75
onEnd(res, function (payload) {
0 commit comments