Ver Fonte

Fix HTTPServer bug

Stan há 1 dia atrás
pai
commit
df26bea8c1
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      http_server.go

+ 1 - 1
http_server.go

@@ -144,7 +144,7 @@ func (this *HTTPServer) ServeHTTP(responseStream http.ResponseWriter, requestStr
 			}
 		}
 
-		buffer, err := json.Marshal(query)
+		buffer, err := json.Marshal(&query)
 		if err != nil {
 			this.log.Error("malformed request body", LogValue("path", requestStream.URL.Path), LogError(err))
 			responseStream.WriteHeader(http.StatusInternalServerError)