From e66f45d8beab0d798f419d3de1f4af77a7d73877 Mon Sep 17 00:00:00 2001 From: Mxmilu666 Date: Tue, 10 Mar 2026 19:08:38 +0800 Subject: [PATCH] feat(plugin): add ReadHeaderTimeout to HTTP2HTTPS redirect --- pkg/plugin/client/http2https_redirect.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/plugin/client/http2https_redirect.go b/pkg/plugin/client/http2https_redirect.go index c3ad02fa..977394dd 100644 --- a/pkg/plugin/client/http2https_redirect.go +++ b/pkg/plugin/client/http2https_redirect.go @@ -23,6 +23,7 @@ import ( "net/url" "strconv" "strings" + "time" v1 "github.com/fatedier/frp/pkg/config/v1" netpkg "github.com/fatedier/frp/pkg/util/net" @@ -52,6 +53,7 @@ func NewHTTP2HTTPSRedirectPlugin(_ PluginContext, options v1.ClientPluginOptions Handler: http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) { http.Redirect(w, req, buildHTTPSRedirectURL(req, opts.HTTPSPort), http.StatusFound) }), + ReadHeaderTimeout: 60 * time.Second, } go func() {