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

This commit is contained in:
hkfires committed 2025-12-06 15:09:25 +08:00
1 parent 22579155c5
commit 54af96d321
1 file changed
+1
@@ -199,6 +199,7 @@ func (fh *FallbackHandler) WrapHandler(handler gin.HandlerFunc) gin.HandlerFunc
handler(c)
} else {
// 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)
}
}