Explorar el Código

Improve HTTPServer validation

Stan hace 18 horas
padre
commit
63a14a9c8a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      http_server.go

+ 1 - 1
http_server.go

@@ -298,7 +298,7 @@ func validateData(handler HTTPServerHandler) bool {
 	}
 
 	value := reflect.ValueOf(handler.Data)
-	if value.Kind() != reflect.Pointer {
+	if value.Kind() != reflect.Interface {
 		return true
 	}