1
0
mirror of https://github.com/astaxie/beego.git synced 2025-08-31 00:47:33 +00:00

handle trace request

This commit is contained in:
JessonChan
2019-03-27 13:34:46 +08:00
parent 610f27d684
commit e8b29c9fd1
2 changed files with 48 additions and 17 deletions

View File

@@ -843,6 +843,8 @@ func (p *ControllerRegister) ServeHTTP(rw http.ResponseWriter, r *http.Request)
execController.Patch()
case http.MethodOptions:
execController.Options()
case http.MethodTrace:
execController.Trace()
default:
if !execController.HandlerFunc(runMethod) {
vc := reflect.ValueOf(execController)