Skip to content

Commit

Permalink
Expose Height/Width fields to decoder
Browse files Browse the repository at this point in the history
Fixes containers#7102

Signed-off-by: Jhon Honce <[email protected]>
  • Loading branch information
jwhonce committed Dec 31, 2020
1 parent c6c9b45 commit a0bfd95
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/api/handlers/compat/resize.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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
Expand Down

0 comments on commit a0bfd95

Please sign in to comment.