Explorar el Código

Fix HTTPServer bug

Stan hace 1 día
padre
commit
df26bea8c1
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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)