소스 검색

Fix HTTPServer bug

Stan 1 일 전
부모
커밋
df26bea8c1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)