This commit is contained in:
WJQSERVER 2025-01-15 06:53:10 +08:00
parent 5258046faa
commit c2047c49e5
16 changed files with 555 additions and 391 deletions

16
proxy/reqheader.go Normal file
View file

@ -0,0 +1,16 @@
package proxy
import (
"net/http"
"github.com/gin-gonic/gin"
)
// 设置请求头
func setRequestHeaders(c *gin.Context, req *http.Request) {
for key, values := range c.Request.Header {
for _, value := range values {
req.Header.Set(key, value)
}
}
}