Skip to content

Commit f3afbf8

Browse files
authored
fix: use io.Copy for exec TTY output instead of stdcopy (#4382)
1 parent 10e4dfd commit f3afbf8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/support/docker/docker_service.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,8 @@ func (d *DockerClientService) Exec(ctx context.Context, c container.Container, c
208208
})
209209

210210
wg.Go(func() {
211-
if _, err := stdcopy.StdCopy(stdout, stdout, session.Reader); err != nil {
211+
// TTY mode outputs raw bytes without Docker's multiplexing headers.
212+
if _, err := io.Copy(stdout, session.Reader); err != nil {
212213
log.Error().Err(err).Msg("error while writing to ws")
213214
}
214215
cancel()

0 commit comments

Comments
 (0)