1
This commit is contained in:
@@ -2,7 +2,6 @@ package middleware
|
||||
|
||||
import (
|
||||
"blazing/modules/base/config"
|
||||
"fmt"
|
||||
"net/http"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
@@ -22,7 +21,7 @@ func MiddlewareCORS(r *ghttp.Request) {
|
||||
r.Response.WriteStatus(http.StatusOK)
|
||||
return
|
||||
}
|
||||
fmt.Println(r.Response.Header())
|
||||
// fmt.Println(r.Response.Header())
|
||||
//g.Dump(r.Response.Server.SetConfig(gtt))
|
||||
//r.Response.Header().Del("Server") // 删除Server头
|
||||
// r.Response.Header().Set("Server", "blazing")
|
||||
|
||||
Reference in New Issue
Block a user