Skip to content

Commit cf651b8

Browse files
committed
Don't add newlines to base64 encoded stuff. Fixes nuclearace/Socket.IO-Client-Swft#105
1 parent b8307b6 commit cf651b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/SocketEngineSpec.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ extension SocketEngineSpec {
8383

8484
return .Left(mutData)
8585
} else {
86-
let str = "b4" + data.base64EncodedStringWithOptions(.Encoding64CharacterLineLength)
86+
let str = "b4" + data.base64EncodedStringWithOptions(NSDataBase64EncodingOptions(rawValue: 0))
8787

8888
return .Right(str)
8989
}

0 commit comments

Comments
 (0)