mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user