mirror of
https://github.com/bitechdev/ResolveSpec.git
synced 2026-07-02 17:37:37 +00:00
fix: Set http2 based on prop
This commit is contained in:
@@ -486,6 +486,10 @@ func newInstance(cfg Config) (*serverInstance, error) {
|
|||||||
if httpServer.HTTP2 == nil {
|
if httpServer.HTTP2 == nil {
|
||||||
httpServer.HTTP2 = &http.HTTP2Config{}
|
httpServer.HTTP2 = &http.HTTP2Config{}
|
||||||
}
|
}
|
||||||
|
httpServer.Protocols.SetHTTP2(true)
|
||||||
|
httpServer.Protocols.SetUnencryptedHTTP2(true)
|
||||||
|
} else {
|
||||||
|
httpServer.Protocols.SetHTTP2(false)
|
||||||
}
|
}
|
||||||
|
|
||||||
gracefulSrv := &gracefulServer{
|
gracefulSrv := &gracefulServer{
|
||||||
|
|||||||
Reference in New Issue
Block a user