aboutsummaryrefslogtreecommitdiff
path: root/strings.go
diff options
context:
space:
mode:
authorGravatar Sergey Ponomarev <stokito@gmail.com> 2023-01-06 05:55:09 +0200
committerGravatar GitHub <noreply@github.com> 2023-01-06 04:55:09 +0100
commit434022b4611dbac1c294c26feac02abe9fb31e3b (patch)
tree94267c88ec3b7f1679929fcac8b1b6e4e0c0ecf7 /strings.go
parentclient.go Simplify default UA logic (#1466) (diff)
downloadfasthttp-434022b4611dbac1c294c26feac02abe9fb31e3b.tar.gz
fasthttp-434022b4611dbac1c294c26feac02abe9fb31e3b.tar.bz2
fasthttp-434022b4611dbac1c294c26feac02abe9fb31e3b.zip
server.go Simplify default Server name logic (#1467)
The serverName atomic.Value field is used as a cache. This is not needed and logic can be simplified. See related #1458
Diffstat (limited to 'strings.go')
-rw-r--r--strings.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/strings.go b/strings.go
index dd7a827..0e201a1 100644
--- a/strings.go
+++ b/strings.go
@@ -1,7 +1,7 @@
package fasthttp
var (
- defaultServerName = []byte("fasthttp")
+ defaultServerName = "fasthttp"
defaultUserAgent = "fasthttp"
defaultContentType = []byte("text/plain; charset=utf-8")
)