diff --git a/StompClientLib/Classes/StompClientLib.swift b/StompClientLib/Classes/StompClientLib.swift index d9548cf..fe2b4a5 100755 --- a/StompClientLib/Classes/StompClientLib.swift +++ b/StompClientLib/Classes/StompClientLib.swift @@ -163,7 +163,7 @@ public class StompClientLib: NSObject, SRWebSocketDelegate { } else { let parts = line.components(separatedBy: ":") if let key = parts.first { - headers[key] = parts.last + headers[key] = parts.dropFirst().joined(separator: ":") } } }