Merge pull request #16711 from liggitt/remotecommand_error

Auto commit by PR queue bot
This commit is contained in:
k8s-merge-robot
2015-11-03 06:43:37 -08:00
3 changed files with 16 additions and 6 deletions

View File

@@ -130,10 +130,6 @@ func (e *streamExecutor) Dial(protocols ...string) (httpstream.Connection, strin
}
defer resp.Body.Close()
if resp.StatusCode != http.StatusSwitchingProtocols {
return nil, "", fmt.Errorf("unexpected response status code %d (%s)", resp.StatusCode, http.StatusText(resp.StatusCode))
}
conn, err := e.upgrader.NewConnection(resp)
if err != nil {
return nil, "", err