Skip to content

Commit

Permalink
Merge pull request #8858 from jwhonce/issues/7102
Browse files Browse the repository at this point in the history
Expose Height/Width fields to decoder
  • Loading branch information
openshift-merge-robot authored Dec 31, 2020
2 parents c6c9b45 + a0bfd95 commit 39b1cb4
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 39b1cb4

Please sign in to comment.