feat(原生桌面): 添加build.bat,双击即可完成桌面版构建
build.yaml / build (push) Successful in 46s

This commit is contained in:
xiaoqidun committed 2026-10-23 19:08:13 +08:00
1 parent d717b704d8
commit 7ddb67ea41
3 files changed
+27 -8

No files matched your search

+1
View File
@@ -210,6 +210,7 @@ func (h *Host) resource(r *http.Request) (*guigo.Resource, error) {
contentType = http.DetectContentType(header)
}
headers := http.Header{"Content-Type": {contentType}, "Content-Length": {strconv.FormatInt(size, 10)}, "Cache-Control": {"no-store"}, "Accept-Ranges": {"bytes"}}
headers.Set("X-OFDGo-Build-Version", build.Version)
start, length, status := int64(0), size, http.StatusOK
if value := r.Header.Get("Range"); value != "" && r.Method == http.MethodGet {
if !strings.HasPrefix(value, "bytes=") || strings.Contains(value, ",") {