mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 17:27:08 +08:00
This commit is contained in:
1 parent
85baeda7f9
commit
ac2eb2b5c7
8 files changed
+105
-3
No files matched your search
@@ -37,6 +37,7 @@ import (
|
||||
"github.com/xiaoqidun/guigo"
|
||||
"github.com/xiaoqidun/ofdgo"
|
||||
webuiassets "github.com/xiaoqidun/ofdgo/assets/webui"
|
||||
"github.com/xiaoqidun/ofdgo/internal/build"
|
||||
"github.com/xiaoqidun/ofdgo/internal/webui"
|
||||
)
|
||||
|
||||
@@ -115,6 +116,7 @@ func Run(ctx context.Context, paths []string, dataDir string) error {
|
||||
return
|
||||
}
|
||||
w.Header().Set("Cache-Control", "no-store")
|
||||
w.Header().Set("X-OFDGo-Build-Version", build.Version)
|
||||
static.ServeHTTP(w, r)
|
||||
})
|
||||
options.Handler = handler
|
||||
|
||||
Reference in new issue
Block a user