forked from TrueCloudLab/frostfs-s3-gw
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:
parent
ef8684c11d
commit
92c8cce933
7 changed files with 33 additions and 36 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue