mirror of
https://github.com/minio/minio
synced 2024-10-14 11:52:56 +00:00
fix: unknow contentType for ArchiveFileHandler (#19451)
This commit is contained in:
parent
7bb0f32332
commit
a481825ae1
|
@ -22,7 +22,9 @@ import (
|
|||
"context"
|
||||
"errors"
|
||||
"io"
|
||||
"mime"
|
||||
"net/http"
|
||||
"path/filepath"
|
||||
"sort"
|
||||
"strings"
|
||||
|
||||
|
@ -170,6 +172,7 @@ func (api objectAPIHandlers) getObjectInArchiveFileHandler(ctx context.Context,
|
|||
Name: object,
|
||||
Size: int64(file.UncompressedSize64),
|
||||
ModTime: zipObjInfo.ModTime,
|
||||
ContentType: mime.TypeByExtension(filepath.Ext(object)),
|
||||
}
|
||||
|
||||
var rc io.ReadCloser
|
||||
|
|
Loading…
Reference in a new issue