From 4f908e07c5675f221c5b71380bf96fa8ad8d01a9 Mon Sep 17 00:00:00 2001 From: Dmitry Patsura Date: Fri, 14 Jun 2019 16:52:18 +0300 Subject: Feature: Handle error from http2.ConfigureServer --- service/http/config.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'service/http/config.go') 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 != "" } -- cgit v1.2.3