lib/protocol/http2/framer.rb in protocol-http2-0.1.1 vs lib/protocol/http2/framer.rb in protocol-http2-0.2.0
- old
+ new
@@ -67,10 +67,10 @@
def read_connection_preface
string = @stream.read(CONNECTION_PREFACE_MAGIC.bytesize)
unless string == CONNECTION_PREFACE_MAGIC
- raise ProtocolError, "Invalid connection preface: #{string.inspect}"
+ raise HandshakeError, "Invalid connection preface: #{string.inspect}"
end
return string
end