diff options
author | Felix Lange <fjl@twurst.com> | 2016-07-15 04:58:17 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2016-07-15 05:03:40 +0800 |
commit | 39b4ef4b02587ca1bd1126300c6ab8b4e92c4ac0 (patch) | |
tree | 96ccc3f9d25815928e82b81d6e6e3d690fa972b1 /Godeps/_workspace/src/golang.org/x/net/websocket/hybi.go | |
parent | 74be4a62c53891016cc0bbd3f9b5ed5d0539efe4 (diff) | |
download | dexon-39b4ef4b02587ca1bd1126300c6ab8b4e92c4ac0.tar dexon-39b4ef4b02587ca1bd1126300c6ab8b4e92c4ac0.tar.gz dexon-39b4ef4b02587ca1bd1126300c6ab8b4e92c4ac0.tar.bz2 dexon-39b4ef4b02587ca1bd1126300c6ab8b4e92c4ac0.tar.lz dexon-39b4ef4b02587ca1bd1126300c6ab8b4e92c4ac0.tar.xz dexon-39b4ef4b02587ca1bd1126300c6ab8b4e92c4ac0.tar.zst dexon-39b4ef4b02587ca1bd1126300c6ab8b4e92c4ac0.zip |
Godeps: update golang.org/x/net/...
This adds compatibility with Go 1.7, where context has
moved into the standard library.
Diffstat (limited to 'Godeps/_workspace/src/golang.org/x/net/websocket/hybi.go')
-rw-r--r-- | Godeps/_workspace/src/golang.org/x/net/websocket/hybi.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/Godeps/_workspace/src/golang.org/x/net/websocket/hybi.go b/Godeps/_workspace/src/golang.org/x/net/websocket/hybi.go index 60bbc8418..8cffdd16c 100644 --- a/Godeps/_workspace/src/golang.org/x/net/websocket/hybi.go +++ b/Godeps/_workspace/src/golang.org/x/net/websocket/hybi.go @@ -81,9 +81,6 @@ type hybiFrameReader struct { func (frame *hybiFrameReader) Read(msg []byte) (n int, err error) { n, err = frame.reader.Read(msg) - if err != nil { - return 0, err - } if frame.header.MaskingKey != nil { for i := 0; i < n; i++ { msg[i] = msg[i] ^ frame.header.MaskingKey[frame.pos%4] |