fix
This commit is contained in:
parent
ebbcc2050c
commit
a23edd3e7b
|
@ -41,6 +41,8 @@ func SetCors(w http.ResponseWriter, r *http.Request) {
|
||||||
var pathdict sync.Map = sync.Map{}
|
var pathdict sync.Map = sync.Map{}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
log.SetFlags(log.Llongfile)
|
||||||
|
|
||||||
// 将静态资源路径存储到pathdict
|
// 将静态资源路径存储到pathdict
|
||||||
pathdict.Store("/css", true)
|
pathdict.Store("/css", true)
|
||||||
pathdict.Store("/fonts", true)
|
pathdict.Store("/fonts", true)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user