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