diff --git a/.gitignore b/.gitignore index b93c2f7..58d6d22 100644 --- a/.gitignore +++ b/.gitignore @@ -51,4 +51,9 @@ docker-compose.yml .air.toml #makefile -Makefile \ No newline at end of file +Makefile + +*.crt +*.csr +*.key +*.pem \ No newline at end of file diff --git a/README.md b/README.md index bd5626a..7d4b616 100644 --- a/README.md +++ b/README.md @@ -2,10 +2,10 @@ ![License](https://img.shields.io/badge/license-MIT-green.svg) [![Go Reference](https://pkg.go.dev/badge/github.com/hokamsingh/lessgo)](https://pkg.go.dev/github.com/hokamsingh/lessgo) [![Go Version](https://img.shields.io/github/go-mod/go-version/hokamsingh/lessgo-cli)](https://golang.org/dl/) -![Version](https://img.shields.io/badge/version-v1.0.2-blue) +![Version](https://img.shields.io/badge/version-v1.0.4-blue) [![Go Report Card](https://goreportcard.com/badge/github.com/hokamsingh/lessgo)](https://goreportcard.com/report/github.com/hokamsingh/lessgo) -**๐Ÿš€ LessGo v1.0.2 - The High-Performance Minimal Go Web Framework** +**๐Ÿš€ LessGo v1.0.4 - The High-Performance Minimal Go Web Framework** Welcome to **LessGo** โšกโ€”a high-performance, minimal Go web framework crafted for building scalable, maintainable, and modern applications. LessGo empowers developers with advanced features like dynamic configuration management, inbuilt error handling, robust data validation, and Dependency Injection (DI). diff --git a/internal/core/router/router.go b/internal/core/router/router.go index fbd91cf..cb1e725 100644 --- a/internal/core/router/router.go +++ b/internal/core/router/router.go @@ -372,7 +372,6 @@ func (r *Router) Start(addr string, httpConfig *config.HttpConfig) error { // Set maximum header size MaxHeaderBytes: httpConfig.MaxHeaderSize, } - // Configure TLS if certificates are provided if httpConfig.TLSCertFile != "" && httpConfig.TLSKeyFile != "" { server.TLSConfig = &tls.Config{ diff --git a/pkg/lessgo/less.go b/pkg/lessgo/less.go index 5f1e8b5..05dbd55 100644 --- a/pkg/lessgo/less.go +++ b/pkg/lessgo/less.go @@ -534,7 +534,7 @@ type HttpConfig = config.HttpConfig // - WithWriteTimeout // - WithTLSCertFile func NewHttpConfig(options ...func(*config.HttpConfig)) *config.HttpConfig { - return config.NewHttpConfig() + return config.NewHttpConfig(options...) } func WithReadTimeout(timeout int) func(*config.HttpConfig) {