mirror of
https://git.maid.zone/stuff/soundcloak.git
synced 2025-12-10 05:39:38 +05:00
small restructuring in preparation for something
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
||||
|
||||
"github.com/gofiber/fiber/v2"
|
||||
"github.com/maid-zone/soundcloak/lib/cfg"
|
||||
"github.com/maid-zone/soundcloak/lib/misc"
|
||||
"github.com/maid-zone/soundcloak/lib/sc"
|
||||
"github.com/valyala/fasthttp"
|
||||
)
|
||||
@@ -65,7 +66,7 @@ func Load(r fiber.Router) {
|
||||
return err
|
||||
}
|
||||
//return c.Send(resp.Body())
|
||||
pr := cfg.AcquireProxyReader()
|
||||
pr := misc.AcquireProxyReader()
|
||||
pr.Reader = resp.BodyStream()
|
||||
pr.Resp = resp
|
||||
return c.SendStream(pr)
|
||||
@@ -103,7 +104,7 @@ func Load(r fiber.Router) {
|
||||
return err
|
||||
}
|
||||
|
||||
pr := cfg.AcquireProxyReader()
|
||||
pr := misc.AcquireProxyReader()
|
||||
pr.Reader = resp.BodyStream()
|
||||
pr.Resp = resp
|
||||
return c.SendStream(pr)
|
||||
|
||||
Reference in New Issue
Block a user