MCPcopy Create free account
hub / github.com/Ayin-a/hk4e / querySecurityFile

Method querySecurityFile

dispatch/controller/dispatch_controller.go:21–31  ·  view source on GitHub ↗
(context *gin.Context)

Source from the content-addressed store, hash-verified

19)
20
21func (c *Controller) querySecurityFile(context *gin.Context) {
22 // 很早以前2.6.0版本的时候抓包为了完美还原写的 不清楚有没有副作用暂时不要了
23 return
24 file, err := os.ReadFile("static/security_file")
25 if err != nil {
26 logger.Error("open security_file error")
27 return
28 }
29 context.Header("Content-type", "text/html; charset=UTF-8")
30 _, _ = context.Writer.WriteString(string(file))
31}
32
33func (c *Controller) queryRegionList(context *gin.Context) {
34 context.Header("Content-type", "text/html; charset=UTF-8")

Callers

nothing calls this directly

Calls 2

ErrorFunction · 0.92
HeaderMethod · 0.80

Tested by

no test coverage detected