fix(amp): restore request body before fallback handler execution

This commit is contained in:
hkfires
2025-12-06 15:09:25 +08:00
parent 22579155c5
commit 54af96d321

View File

@@ -199,6 +199,7 @@ func (fh *FallbackHandler) WrapHandler(handler gin.HandlerFunc) gin.HandlerFunc
handler(c) handler(c)
} else { } else {
// No provider, no mapping, no proxy: fall back to the wrapped handler so it can return an error response // No provider, no mapping, no proxy: fall back to the wrapped handler so it can return an error response
c.Request.Body = io.NopCloser(bytes.NewReader(bodyBytes))
handler(c) handler(c)
} }
} }