Browse Source

Improve HTTPServer validation

Stan 17 hours ago
parent
commit
63a14a9c8a
1 changed files with 1 additions and 1 deletions
  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
 	}