Merge pull request #15 from atlassian/belak/always-send-pty-response

Always respond to PTY requests
This commit is contained in:
Jeff Lindsay 2017-02-03 18:42:23 -06:00 committed by GitHub
commit 39bc88bc6d

@ -168,8 +168,9 @@ func (sess *session) handleRequests(reqs <-chan *gossh.Request) {
if ok {
sess.pty = &Pty{Window{width, height}}
sess.winch = make(chan Window)
req.Reply(true, nil)
}
req.Reply(ok, nil)
case "window-change":
if sess.pty == nil {
req.Reply(false, nil)