diff options
author | Sergey Ponomarev <stokito@gmail.com> | 2023-01-06 05:55:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-06 04:55:09 +0100 |
commit | 434022b4611dbac1c294c26feac02abe9fb31e3b (patch) | |
tree | 94267c88ec3b7f1679929fcac8b1b6e4e0c0ecf7 /strings.go | |
parent | client.go Simplify default UA logic (#1466) (diff) | |
download | fasthttp-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.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1,7 +1,7 @@ package fasthttp var ( - defaultServerName = []byte("fasthttp") + defaultServerName = "fasthttp" defaultUserAgent = "fasthttp" defaultContentType = []byte("text/plain; charset=utf-8") ) |