                 frame = try readFrameFragment(nil)
                 finished = frame.finished
             }
-            if frame.code == .continu{
+            if frame.code == .continue{
                 throw WebSocketError.protocolError("leader frame cannot be a continue frame")
             }
             if !finished {

    var fragStateInflate = false
    var fragStateLen = 0
    var fragStateFin = false
    var fragStateCode = OpCode.continu
    var fragStateLeaderCode = OpCode.continu
    var fragStateUTF8 = UTF8()
    var fragStatePayload = Payload()
    var fragStateStatusCode = UInt16(0)

            while true {
                strm.avail_out = CUnsignedInt(bufsiz)
                strm.next_out = buf
                _ = inflateG(&strm, flush: 0)
                let have = bufsiz - Int(strm.avail_out)
                bufsiz -= have
                buflen += have
