aboutsummaryrefslogtreecommitdiff
path: root/client.go
diff options
context:
space:
mode:
authorGravatar Oleksandr Redko <Oleksandr_Redko@epam.com> 2024-01-04 16:05:38 +0200
committerGravatar GitHub <noreply@github.com> 2024-01-04 15:05:38 +0100
commit28615eba5594af29737938ae5cece50d7cba0a17 (patch)
treeefb48c34b0d4372bdbbe4f89a06b7d3fb05baf75 /client.go
parentchore: move cookie fuzz test to go 1.18 fuzzing (#1686) (diff)
downloadfasthttp-28615eba5594af29737938ae5cece50d7cba0a17.tar.gz
fasthttp-28615eba5594af29737938ae5cece50d7cba0a17.tar.bz2
fasthttp-28615eba5594af29737938ae5cece50d7cba0a17.zip
Change empty string checks to be more idiomatic (#1684)
Diffstat (limited to 'client.go')
-rw-r--r--client.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/client.go b/client.go
index 122894b..b5493e9 100644
--- a/client.go
+++ b/client.go
@@ -1825,7 +1825,7 @@ func newClientTLSConfig(c *tls.Config, addr string) *tls.Config {
c = c.Clone()
}
- if len(c.ServerName) == 0 {
+ if c.ServerName == "" {
serverName := tlsServerName(addr)
if serverName == "*" {
c.InsecureSkipVerify = true