FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix Websocket sent frame length · do8pgg/esp32_https_server@036420d · GitHub

Repository navigation

Commit 036420d

Browse files
committed
fix Websocket sent frame length
1 parent 31a7f86 commit 036420d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/WebsocketHandler.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ void WebsocketHandler::send(uint8_t* data, uint16_t length, uint8_t sendType) {
238238
frame.len = 126;
239239
_con->writeBuffer((uint8_t *)&frame, sizeof(frame));
240240
uint16_t net_len = htons(length);
241-
_con->writeBuffer((uint8_t *) net_len, sizeof(uint16_t)); // Convert to network byte order from host byte order
241+
_con->writeBuffer((uint8_t *)&net_len, sizeof(uint16_t)); // Convert to network byte order from host byte order
242242
}
243243
_con->writeBuffer(data, length);
244244
HTTPS_LOGD("<< Websocket.send()");

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL