From a0bfd953c2e1a939b4e6781fdcc6ea873562b77c Mon Sep 17 00:00:00 2001 From: Jhon Honce Date: Wed, 30 Dec 2020 19:25:37 -0700 Subject: [PATCH] Expose Height/Width fields to decoder Fixes #7102 Signed-off-by: Jhon Honce --- pkg/api/handlers/compat/resize.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/api/handlers/compat/resize.go b/pkg/api/handlers/compat/resize.go index bdc051d73b..cc8c6ef0a2 100644 --- a/pkg/api/handlers/compat/resize.go +++ b/pkg/api/handlers/compat/resize.go @@ -20,8 +20,8 @@ func ResizeTTY(w http.ResponseWriter, r *http.Request) { // /containers/{id}/resize query := struct { - height uint16 `schema:"h"` - width uint16 `schema:"w"` + Height uint16 `schema:"h"` + Width uint16 `schema:"w"` }{ // override any golang type defaults } @@ -33,8 +33,8 @@ func ResizeTTY(w http.ResponseWriter, r *http.Request) { } sz := remotecommand.TerminalSize{ - Width: query.width, - Height: query.height, + Width: query.Width, + Height: query.Height, } var status int