misc: move to internal/version, use for all binaries

No libmisc, please.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
This commit is contained in:
Roman Khimov 2021-05-20 15:41:32 +03:00
parent ef8684c11d
commit 92c8cce933
7 changed files with 33 additions and 36 deletions

View file

@ -10,7 +10,7 @@ import (
"strconv"
"github.com/google/uuid"
"github.com/nspcc-dev/neofs-s3-gw/misc"
"github.com/nspcc-dev/neofs-s3-gw/internal/version"
)
type (
@ -153,7 +153,7 @@ func errorResponseHandler(w http.ResponseWriter, r *http.Request) {
// Write http common headers.
func setCommonHeaders(w http.ResponseWriter) {
w.Header().Set(hdrServerInfo, "NeoFS-S3-GW/"+misc.Version)
w.Header().Set(hdrServerInfo, version.Server)
w.Header().Set(hdrAcceptRanges, "bytes")
// Remove sensitive information