Unreviewed, rolling out r234489.
[WebKit-https.git] / Source / WebCore / Modules / websockets / WebSocket.cpp
index 1983b65..02dac6e 100644 (file)
@@ -99,7 +99,7 @@ static String encodeProtocolString(const String& protocol)
     StringBuilder builder;
     for (size_t i = 0; i < protocol.length(); i++) {
         if (protocol[i] < 0x20 || protocol[i] > 0x7E)
-            builder.append(String::deprecatedFormat("\\u%04X", protocol[i]));
+            builder.append(String::format("\\u%04X", protocol[i]));
         else if (protocol[i] == 0x5c)
             builder.appendLiteral("\\\\");
         else