This is an automated email from the ASF dual-hosted git repository.

hsluoyz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/casbin-gateway.git


The following commit(s) were added to refs/heads/master by this push:
     new 4756b25  fix: always copy request bodies so JSON POSTs aren't empty
4756b25 is described below

commit 4756b25329d9db993d94ebc68f3f0b969deb9e13
Author: Yang Luo <[email protected]>
AuthorDate: Fri Sep 11 09:20:22 2026 +0800

    fix: always copy request bodies so JSON POSTs aren't empty
---
 main.go | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/main.go b/main.go
index c5b3c11..1e50a41 100644
--- a/main.go
+++ b/main.go
@@ -166,6 +166,8 @@ func main() {
 
        controllers.InitSessions()
 
+       beego.BConfig.CopyRequestBody = true
+
        port := conf.GetHttpPort()
        addr := conf.GetHttpAddr()
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to