refactor(service): 重构服务代码结构并更新配置

This commit is contained in:
2026-05-18 19:19:16 +08:00
parent 09290fecbe
commit 142fea1e91
6 changed files with 27 additions and 26 deletions

View File

@@ -11,7 +11,7 @@ func DetectFileType(data []byte) (contentType string, ext string) {
return "application/octet-stream", ""
}
ct := http.DetectContentType(data)
// http.DetectContentType 可能带 charset 等参数text/plain; charset=utf-8
// gateway.DetectContentType 可能带 charset 等参数text/plain; charset=utf-8
if idx := strings.Index(ct, ";"); idx > 0 {
ct = strings.TrimSpace(ct[:idx])
}