Browse Source

Fix HTTPServer bug

Stan 23 hours ago
parent
commit
facd340d2e
1 changed files with 5 additions and 3 deletions
  1. 5 3
      http_server.go

+ 5 - 3
http_server.go

@@ -130,9 +130,11 @@ func (this *HTTPServer) ServeHTTP(responseStream http.ResponseWriter, requestStr
 		return
 		return
 	}
 	}
 
 
-	handler := HTTPServerHandler{}
-	copyStruct(&handler, &handlerSpec)
-	handlerSpec = handler
+	// TODO: fix
+	// handler := HTTPServerHandler{}
+	// copyStruct(&handler, &handlerSpec)
+	// handlerSpec = handler
+	handler := handlerSpec
 
 
 	// Parse GET query
 	// Parse GET query
 	if method == METHOD_GET && handler.Data != nil {
 	if method == METHOD_GET && handler.Data != nil {