Skip to content

Commit

Permalink
copy origin response cookies to alice response
Browse files Browse the repository at this point in the history
  • Loading branch information
MindHunter86 committed Oct 19, 2024
1 parent 7ed48c4 commit efe4428
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ func (m *Proxy) doRequest(c *fiber.Ctx, req *fasthttp.Request, rsp *fasthttp.Res
return
}

// copy all response headers (like Set-Cookie and etc)
rsp.Header.CopyTo(&c.Response().Header)

var ok bool
if ok, e = m.unmarshalApiResponse(c, rsp); e != nil {
rlog(c).Warn().Msg(e.Error())
Expand Down

0 comments on commit efe4428

Please sign in to comment.