feat: 植物识别百科ai助手迁移
This commit is contained in:
@@ -39,6 +39,7 @@ func NewProxyRouter(upstreams []config.Upstream) *ProxyRouter {
|
||||
|
||||
target := targetURL // 显式捕获循环变量
|
||||
proxy := &httputil.ReverseProxy{
|
||||
FlushInterval: -1, // 立即将数据刷新到客户端,确保 SSE 等流式接口能够实时响应
|
||||
Rewrite: func(pr *httputil.ProxyRequest) {
|
||||
pr.SetXForwarded()
|
||||
pr.Out.URL.Scheme = target.Scheme
|
||||
|
||||
Reference in New Issue
Block a user