summaryrefslogtreecommitdiff
path: root/crow
diff options
context:
space:
mode:
authorEd Tanous <ed.tanous@intel.com>2017-04-05 23:04:39 +0300
committerEd Tanous <ed.tanous@intel.com>2017-04-05 23:17:36 +0300
commit7d3dba40b6576ece9850c7156a481436b5f5ef02 (patch)
tree5042fa6df66620b82706f25d3eb19e1a4c14d364 /crow
parentb4a7bfad0a3ded7a813bdb44a46383316dc49b24 (diff)
downloadbmcweb-7d3dba40b6576ece9850c7156a481436b5f5ef02.tar.xz
Make app middlewares not require specific instances of app
Diffstat (limited to 'crow')
-rw-r--r--crow/include/crow/websocket.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/crow/include/crow/websocket.h b/crow/include/crow/websocket.h
index ac22d675bd..c148c3799d 100644
--- a/crow/include/crow/websocket.h
+++ b/crow/include/crow/websocket.h
@@ -113,7 +113,7 @@ class Connection : public connection {
}
protected:
- std::string build_header(int opcode, size_t size) {
+ std::string build_header(int opcode, uint64_t size) {
char buf[2 + 8] = "\x80\x00";
buf[0] += opcode;
if (size < 126) {
@@ -138,7 +138,7 @@ class Connection : public connection {
"HTTP/1.1 101 Switching Protocols\r\n"
"Upgrade: websocket\r\n"
"Connection: Upgrade\r\n"
- "Sec-WebSocket-Protocol: binary\n" // TODO(ed): this hardcodes binary.
+ "Sec-WebSocket-Protocol: binary\n" // TODO(ed): this hardcodes binary mode
// find a better way
"Sec-WebSocket-Accept: ";
static std::string crlf = "\r\n";