From 1dab51986c2fedd04ccc4d72f849e8021c6e848b Mon Sep 17 00:00:00 2001 From: Serhiy Mytrovtsiy Date: Tue, 16 Apr 2024 18:22:06 +0200 Subject: [PATCH] added ErrValidate --- response.go | 1 + server.go | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/response.go b/response.go index a09a76f..3fdd3f2 100644 --- a/response.go +++ b/response.go @@ -21,6 +21,7 @@ var ( ErrUnmarshal = errors.New("UNMARSHAL_ERROR") ErrMissingField = errors.New("MISSING_FIELD") ErrNotFound = errors.New("NOT_FOUND") + ErrValidate = errors.New("VALIDATION_ERROR") ) // Just to confirm Error interface diff --git a/server.go b/server.go index 3188d0d..59fafa2 100644 --- a/server.go +++ b/server.go @@ -169,7 +169,6 @@ func (s *Server) http(address string, port int, router http.Handler) *http.Serve func (s *Server) https(address string, port int, router http.Handler) *http.Server { server := s.http(address, port, router) server.TLSConfig = &tls.Config{ - PreferServerCipherSuites: true, CipherSuites: []uint16{ tls.TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, tls.TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,