feat: add authenticated pre and post api gateway
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -425,6 +425,8 @@ async function handleRequest(req, res, pool) {
|
||||
let total = 0
|
||||
let bodyExceeded = false
|
||||
|
||||
res.on("close", () => { upstreamRes.destroy() })
|
||||
|
||||
upstreamRes.on("data", (chunk) => {
|
||||
total += chunk.length
|
||||
if (total > AUDIT_MAX_BYTES) {
|
||||
|
||||
Reference in New Issue
Block a user