Skip to content

Commit b1ba029

Browse files
committed
Fixed header parsing to allow values with : in them
1 parent f9ddcb1 commit b1ba029

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

StompClientLib/Classes/StompClientLib.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ public class StompClientLib: NSObject, SRWebSocketDelegate {
163163
} else {
164164
let parts = line.components(separatedBy: ":")
165165
if let key = parts.first {
166-
headers[key] = parts.last
166+
headers[key] = parts.dropFirst().joined(separator: ":")
167167
}
168168
}
169169
}

0 commit comments

Comments
 (0)