mirror of
https://github.com/containers/podman.git
synced 2025-05-23 10:07:33 +08:00
Expose Height/Width fields to decoder
Fixes #7102 Signed-off-by: Jhon Honce <jhonce@redhat.com>
This commit is contained in:
@ -20,8 +20,8 @@ func ResizeTTY(w http.ResponseWriter, r *http.Request) {
|
|||||||
|
|
||||||
// /containers/{id}/resize
|
// /containers/{id}/resize
|
||||||
query := struct {
|
query := struct {
|
||||||
height uint16 `schema:"h"`
|
Height uint16 `schema:"h"`
|
||||||
width uint16 `schema:"w"`
|
Width uint16 `schema:"w"`
|
||||||
}{
|
}{
|
||||||
// override any golang type defaults
|
// override any golang type defaults
|
||||||
}
|
}
|
||||||
@ -33,8 +33,8 @@ func ResizeTTY(w http.ResponseWriter, r *http.Request) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
sz := remotecommand.TerminalSize{
|
sz := remotecommand.TerminalSize{
|
||||||
Width: query.width,
|
Width: query.Width,
|
||||||
Height: query.height,
|
Height: query.Height,
|
||||||
}
|
}
|
||||||
|
|
||||||
var status int
|
var status int
|
||||||
|
Reference in New Issue
Block a user