mirror of
https://github.com/SphericalKat/medium.rip.git
synced 2025-12-18 07:25:58 +00:00
Update api.go
This commit is contained in:
parent
0a4e286b24
commit
3c9cda56d4
@ -43,12 +43,14 @@ func RegisterRoutes(ctx context.Context, wg *sync.WaitGroup, engine *html.Engine
|
|||||||
//return nil
|
//return nil
|
||||||
req_code, req_body, req_errs := c.String()
|
req_code, req_body, req_errs := c.String()
|
||||||
log.Printf("REQUEST: %s", req_body)
|
log.Printf("REQUEST: %s", req_body)
|
||||||
|
return nil
|
||||||
},
|
},
|
||||||
ModifyResponse: func(c *fiber.Ctx) error {
|
ModifyResponse: func(c *fiber.Ctx) error {
|
||||||
//c.Response().Header.Del(fiber.HeaderServer)
|
//c.Response().Header.Del(fiber.HeaderServer)
|
||||||
//return nil
|
//return nil
|
||||||
res_code, res_body, res_errs := c.String()
|
res_code, res_body, res_errs := c.String()
|
||||||
log.Printf("RESPONSE: %s", res_body)
|
log.Printf("RESPONSE: %s | %s | %s ", res_code, res_body, res_errs)
|
||||||
|
return nil
|
||||||
},
|
},
|
||||||
}))
|
}))
|
||||||
log.Printf("Using proxy: %s", config.Conf.Proxy)
|
log.Printf("Using proxy: %s", config.Conf.Proxy)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user