less ram usage when using strings

This commit is contained in:
Markus Sattler
2016-02-06 19:21:24 +01:00
parent 2b6f1909d7
commit 2d87bfa3d6
6 changed files with 8 additions and 8 deletions

View File

@ -473,7 +473,7 @@ void WebSockets::handleWebsocketPayloadCb(WSclient_t * client, bool ok, uint8_t
* @param clientKey String
* @return String Accept Key
*/
String WebSockets::acceptKey(String clientKey) {
String WebSockets::acceptKey(String & clientKey) {
uint8_t sha1HashBin[20] = { 0 };
#ifdef ESP8266
sha1(clientKey + "258EAFA5-E914-47DA-95CA-C5AB0DC85B11", &sha1HashBin[0]);