diff options
author | Dmitry Patsura <[email protected]> | 2019-06-14 16:52:18 +0300 |
---|---|---|
committer | Dmitry Patsura <[email protected]> | 2019-06-14 16:52:18 +0300 |
commit | 4f908e07c5675f221c5b71380bf96fa8ad8d01a9 (patch) | |
tree | cf60b725f10f87ebb1e575788d82d662dcd36752 /service/http/config.go | |
parent | 15746d3706fb9ed1e4a8e7d925f033878744b6a1 (diff) |
Feature: Handle error from http2.ConfigureServer
Diffstat (limited to 'service/http/config.go')
-rw-r--r-- | service/http/config.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/service/http/config.go b/service/http/config.go index b4575914..5454f124 100644 --- a/service/http/config.go +++ b/service/http/config.go @@ -78,6 +78,10 @@ func (c *Config) EnableTLS() bool { return c.SSL.Key != "" || c.SSL.Cert != "" } +func (c *Config) EnableHTTP2() bool { + return c.HTTP2.Enabled +} + func (c *Config) EnableFCGI() bool { return c.FCGI.Address != "" } |