Merge pull request #8858 from jwhonce/issues/7102

Expose Height/Width fields to decoder
This commit is contained in:
OpenShift Merge Robot 2020-12-31 13:14:25 +01:00 committed by GitHub
commit 39b1cb4967
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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