Skip to content

Commit 9fa09d6

Browse files
committed
feat: always flush response body immediately
1 parent f3f74c8 commit 9fa09d6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

handler/init.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,13 @@ func init() {
3939
log.Fatalln("Please ensure PLEX_BASEURL is a valid URL")
4040
}
4141
proxy = httputil.NewSingleHostReverseProxy(u)
42+
proxy.FlushInterval = -1
4243

4344
plaxtBaseUrl := os.Getenv("PLAXT_BASEURL")
4445
if plaxtBaseUrl != "" {
4546
if u, err := url.Parse(plaxtBaseUrl); err == nil {
4647
plaxtProxy = httputil.NewSingleHostReverseProxy(u)
48+
plaxtProxy.FlushInterval = -1
4749
}
4850
}
4951

0 commit comments

Comments
 (0)