Explorar el Código

Fix GZip pool calibration

DarthSim hace 6 años
padre
commit
c21e211c5a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      server.go

+ 1 - 1
server.go

@@ -137,7 +137,7 @@ func respondWithImage(ctx context.Context, reqID string, r *http.Request, rw htt
 		rw.Header().Set("Content-Length", strconv.Itoa(buf.Len()))
 
 		rw.WriteHeader(200)
-		buf.WriteTo(rw)
+		rw.Write(buf.Bytes())
 	} else {
 		rw.Header().Set("Content-Length", strconv.Itoa(len(data)))
 		rw.WriteHeader(200)