mirror of
https://gitea.com/gitea/runner.git
synced 2026-11-07 07:40:29 +00:00
15 lines
271 B
Go
15 lines
271 B
Go
// Copyright 2026 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package uploadartifact
|
|
|
|
import (
|
|
"cmp"
|
|
"mime"
|
|
"path"
|
|
)
|
|
|
|
func mimeTypeOf(name string) string {
|
|
return cmp.Or(mime.TypeByExtension(path.Ext(name)), "application/octet-stream")
|
|
}
|