|
@@ -25,7 +25,7 @@ func (this *BaseController) Prepare() { |
|
@@ -25,7 +25,7 @@ func (this *BaseController) Prepare() { |
25
|
if this.Ctx.Input.Method() == "OPTIONS" {
|
25
|
if this.Ctx.Input.Method() == "OPTIONS" {
|
26
|
this.Ctx.ResponseWriter.WriteHeader(204)
|
26
|
this.Ctx.ResponseWriter.WriteHeader(204)
|
27
|
this.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Methods", "POST, GET, OPTIONS, PUT, DELETE")
|
27
|
this.Ctx.ResponseWriter.Header().Set("Access-Control-Allow-Methods", "POST, GET, OPTIONS, PUT, DELETE")
|
28
|
- //this.Ctx.WriteString("")
|
28
|
+ this.Ctx.WriteString("")
|
29
|
return
|
29
|
return
|
30
|
}
|
30
|
}
|
31
|
p := this.Ctx.Input.GetData("RouterPattern")
|
31
|
p := this.Ctx.Input.GetData("RouterPattern")
|