源站支持HTTP/2

This commit is contained in:
GoEdgeLab
2023-06-23 11:43:36 +08:00
parent d1c8f995ce
commit cad128451c
12 changed files with 158 additions and 119 deletions

View File

@@ -70,9 +70,10 @@ func (this *AddPopupAction) RunPost(params struct {
CertIdsJSON []byte
DomainsJSON []byte
Host string
FollowPort bool
DomainsJSON []byte
Host string
FollowPort bool
Http2Enabled bool
Description string
IsOn bool
@@ -248,6 +249,7 @@ func (this *AddPopupAction) RunPost(params struct {
Domains: domains,
Host: params.Host,
FollowPort: params.FollowPort,
Http2Enabled: params.Http2Enabled,
})
if err != nil {
this.ErrorPage(err)

View File

@@ -115,6 +115,7 @@ func (this *UpdatePopupAction) RunGet(params struct {
"domains": config.Domains,
"host": config.RequestHost,
"followPort": config.FollowPort,
"http2Enabled": config.HTTP2Enabled,
"oss": config.OSS,
}
@@ -142,9 +143,10 @@ func (this *UpdatePopupAction) RunPost(params struct {
CertIdsJSON []byte
DomainsJSON []byte
Host string
FollowPort bool
DomainsJSON []byte
Host string
FollowPort bool
Http2Enabled bool
Description string
IsOn bool
@@ -323,6 +325,7 @@ func (this *UpdatePopupAction) RunPost(params struct {
Domains: domains,
Host: params.Host,
FollowPort: params.FollowPort,
Http2Enabled: params.Http2Enabled,
})
if err != nil {
this.ErrorPage(err)