Skip to content
Snippets Groups Projects
Commit d5e4bae4 authored by Elemer Lelik's avatar Elemer Lelik
Browse files

Length calculation corrected, R2B

parent 311cbeb9
No related branches found
Tags R.2.B
No related merge requests found
No preview for this file type
......@@ -11,7 +11,7 @@
//
// File: WebSocket_EncDec.cc
// Prodnr: CNL 113 782
// Rev: R2A
// Rev: R2B
#include "WebSocket_Types.hh"
......@@ -67,7 +67,7 @@ void f__WebSocket__Encode(const WebSocket__PDU& pl__pdu, OCTETSTRING& pl__data,
// encode size
if(payload_size<126){
*data_ptr|=(payload_size&0x7F);
*data_ptr|=(payload_size&0x7f);
data_ptr++;
} else if (payload_size<65536) { // 16 bit unsigned max
size_t orig_p_size=payload_size;
......
......@@ -10,7 +10,7 @@
******************************************************************************/
//
// File: WebSocket_Types.ttcn
// Rev: R2A
// Rev: R2B
// Prodnr: CNL 113 782
// Reference: RFC 6455
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment