error text refers to wrong stream type

This commit is contained in:
Morgan Bauer 2018-08-07 18:20:24 -07:00
parent 71b074ff0a
commit 0b709dcf7d
No known key found for this signature in database
GPG Key ID: 262BF1E28B0B5BE6

View File

@ -46,7 +46,7 @@ func handleHttpStreams(req *http.Request, w http.ResponseWriter, portForwarder P
upgrader := spdy.NewResponseUpgrader()
conn := upgrader.UpgradeResponse(w, req, httpStreamReceived(streamChan))
if conn == nil {
return errors.New("Unable to upgrade websocket connection")
return errors.New("Unable to upgrade httpstream connection")
}
defer conn.Close()