소스 검색

Improve HTTPServer validation

Stan 16 시간 전
부모
커밋
f3ea9f23c4
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      http_server.go

+ 2 - 0
http_server.go

@@ -298,11 +298,13 @@ func validateData(handler HTTPServerHandler) bool {
 	}
 
 	value := reflect.ValueOf(handler.Data)
+	fmt.Println(value.Kind())
 	if value.Kind() != reflect.Ptr {
 		return true
 	}
 
 	value = value.Elem()
+	fmt.Println(value.Kind())
 	if value.Kind() != reflect.Struct {
 		return true
 	}