summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-12-31 13:14:25 +0100
committerGitHub <noreply@github.com>2020-12-31 13:14:25 +0100
commit39b1cb496766ec3be248f178375d663bc0a14f4a (patch)
tree3014f39f758775b5272a11b36b4d078b0c5f2623
parentc6c9b45985790af50a78da4c222e10672f92c629 (diff)
parenta0bfd953c2e1a939b4e6781fdcc6ea873562b77c (diff)
downloadpodman-39b1cb496766ec3be248f178375d663bc0a14f4a.tar.gz
podman-39b1cb496766ec3be248f178375d663bc0a14f4a.tar.bz2
podman-39b1cb496766ec3be248f178375d663bc0a14f4a.zip
Merge pull request #8858 from jwhonce/issues/7102
Expose Height/Width fields to decoder
-rw-r--r--pkg/api/handlers/compat/resize.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/api/handlers/compat/resize.go b/pkg/api/handlers/compat/resize.go
index bdc051d73..cc8c6ef0a 100644
--- a/pkg/api/handlers/compat/resize.go
+++ b/pkg/api/handlers/compat/resize.go
@@ -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