Expose Height/Width fields to decoder

Fixes #7102

Signed-off-by: Jhon Honce <jhonce@redhat.com>
This commit is contained in:
Jhon Honce
2020-12-30 19:25:37 -07:00
parent c6c9b45985
commit a0bfd953c2

View File

@ -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