SplitHTTP server: Add noSSEHeader

https://github.com/XTLS/Xray-core/pull/3603#issuecomment-2254968219
This commit is contained in:
RPRX 2024-07-29 06:32:04 +00:00 committed by GitHub
parent 59f6685774
commit 60553a6c26
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 46 additions and 29 deletions

View file

@ -232,6 +232,7 @@ type SplitHTTPConfig struct {
MaxConcurrentUploads Int32Range `json:"maxConcurrentUploads"`
MaxUploadSize Int32Range `json:"maxUploadSize"`
MinUploadIntervalMs Int32Range `json:"minUploadIntervalMs"`
NoSSEHeader bool `json:"noSSEHeader"`
}
// Build implements Buildable.
@ -260,6 +261,7 @@ func (c *SplitHTTPConfig) Build() (proto.Message, error) {
From: c.MinUploadIntervalMs.From,
To: c.MinUploadIntervalMs.To,
},
NoSSEHeader: c.NoSSEHeader,
}
return config, nil
}