daemon: Daemon.ContainerStats: don't escape HTML in responses

We have no need for it, and keeps the response more readable in case
it would ever contain any values that need escaping; it also would save
some cycles to check for such characters.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2025-10-26 15:51:23 +01:00
parent 7623979aba
commit 5df881f3a7

View File

@@ -58,6 +58,7 @@ func (daemon *Daemon) ContainerStats(ctx context.Context, prefixOrName string, c
)
enc := json.NewEncoder(config.OutStream())
enc.SetEscapeHTML(false)
for {
select {
case v, ok := <-updates: