Skip to content

Commit

Permalink
http2 の設定を追加
Browse files Browse the repository at this point in the history
  • Loading branch information
voluntas committed Aug 22, 2023
1 parent d3dd206 commit cd052ba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ func NewServer(c *Config, service string) (*Server, error) {
e.Server.TLSConfig = tlsConfig
}

if err := http2.ConfigureServer(e.Server, h2s); err != nil {
return nil, err
}

e.Pre(middleware.RemoveTrailingSlash())

e.Use(middleware.RequestLoggerWithConfig(middleware.RequestLoggerConfig{
Expand Down

0 comments on commit cd052ba

Please sign in to comment.