🎨 change proxy interface

This commit is contained in:
微凉
2022-02-01 14:28:21 +08:00
parent 1b6ec94f33
commit cb2a3c2b42
20 changed files with 44 additions and 45 deletions

View File

@ -105,7 +105,6 @@ func Proxy(c *gin.Context) {
// Text(c, link)
// return
//}
driver.Proxy(c, account)
r := c.Request
w := c.Writer
//target, err := url.Parse(link.Url)
@ -121,6 +120,7 @@ func Proxy(c *gin.Context) {
for h, val := range r.Header {
req.Header[h] = val
}
driver.Proxy(req, account)
res, err := HttpClient.Do(req)
if err != nil {
common.ErrorResp(c, err, 500)