forked from TrueCloudLab/frostfs-s3-gw
[#657] Replace FileName with FilePath attribute
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
parent
c051d21420
commit
9cd4ef1ac4
13 changed files with 37 additions and 37 deletions
|
@ -82,7 +82,7 @@ func (h *handler) HeadObjectHandler(w http.ResponseWriter, r *http.Request) {
|
|||
}
|
||||
|
||||
if len(info.ContentType) == 0 {
|
||||
if info.ContentType = layer.MimeByFileName(info.Name); len(info.ContentType) == 0 {
|
||||
if info.ContentType = layer.MimeByFilePath(info.Name); len(info.ContentType) == 0 {
|
||||
buffer := bytes.NewBuffer(make([]byte, 0, sizeToDetectType))
|
||||
getParams := &layer.GetObjectParams{
|
||||
ObjectInfo: info,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue