Send deployment id and minio version in http header (#14378)

This commit is contained in:
Shireesh Anjal
2022-02-24 03:06:01 +05:30
committed by GitHub
parent 27f64dd9a4
commit 25144fedd5
7 changed files with 34 additions and 12 deletions

View File

@@ -144,6 +144,8 @@ func (h *Target) logEntry(entry interface{}) {
return
}
req.Header.Set(xhttp.ContentType, "application/json")
req.Header.Set(xhttp.MinIOVersion, xhttp.GlobalMinIOVersion)
req.Header.Set(xhttp.MinioDeploymentID, xhttp.GlobalDeploymentID)
// Set user-agent to indicate MinIO release
// version to the configured log endpoint