Browse Source

Fix HTTPServer bug

Stan 1 ngày trước cách đây
mục cha
commit
df26bea8c1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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)