浏览代码

modules/websocket: doubled the size of the buffer for adding headers to WebSocket handshake responses

Peter Dunkley 12 年之前
父节点
当前提交
a2e7f65ee8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/websocket/ws_handshake.c

+ 1 - 1
modules/websocket/ws_handshake.c

@@ -86,7 +86,7 @@ static str str_status_upgrade_required = str_init("Upgrade Required");
 static str str_status_internal_server_error = str_init("Internal Server Error");
 static str str_status_service_unavailable = str_init("Service Unavailable");
 
-#define HDR_BUF_LEN		(256)
+#define HDR_BUF_LEN		(512)
 static char headers_buf[HDR_BUF_LEN];
 
 static char key_buf[base64_enc_len(SHA_DIGEST_LENGTH)];