From b6113e2b9ea8f397e345a09335c26f953994c6f4 Mon Sep 17 00:00:00 2001 From: Jhon Honce Date: Fri, 8 May 2020 08:33:44 -0700 Subject: WIP V2 attach bindings and test * Add ErrLostSync to report lost of sync when de-mux'ing stream * Add logus.SetLevel(logrus.DebugLevel) when `go test -v` given * Add context to debugging messages Signed-off-by: Jhon Honce --- pkg/api/handlers/compat/containers_attach.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/api/handlers') diff --git a/pkg/api/handlers/compat/containers_attach.go b/pkg/api/handlers/compat/containers_attach.go index 80ad52aee..52c851b8c 100644 --- a/pkg/api/handlers/compat/containers_attach.go +++ b/pkg/api/handlers/compat/containers_attach.go @@ -108,7 +108,7 @@ func AttachContainer(w http.ResponseWriter, r *http.Request) { // This header string sourced from Docker: // https://raw.githubusercontent.com/moby/moby/b95fad8e51bd064be4f4e58a996924f343846c85/api/server/router/container/container_routes.go - // Using literally to ensure compatability with existing clients. + // Using literally to ensure compatibility with existing clients. fmt.Fprintf(connection, "HTTP/1.1 101 UPGRADED\r\nContent-Type: application/vnd.docker.raw-stream\r\nConnection: Upgrade\r\nUpgrade: tcp\r\n\r\n") logrus.Debugf("Hijack for attach of container %s successful", ctr.ID()) -- cgit v1.2.3-54-g00ecf