Pass URI length to LWS_CALLBACK_HTTP. 58/2858/1
authorDavid Galeano <davidgaleano@turbulenz.biz>
Thu, 10 Jan 2013 02:13:19 +0000 (10:13 +0800)
committerKevron Rees <kevron_m_rees@linux.intel.com>
Thu, 7 Mar 2013 21:01:22 +0000 (13:01 -0800)
lib/handshake.c

index fda50b5..a844b05 100644 (file)
@@ -588,7 +588,8 @@ libwebsocket_read(struct libwebsocket_context *context,
                        if (wsi->protocol->callback)
                                (wsi->protocol->callback)(context, wsi,
                                   LWS_CALLBACK_HTTP, wsi->user_space,
-                                  wsi->utf8_token[WSI_TOKEN_GET_URI].token, 0);
+                                  wsi->utf8_token[WSI_TOKEN_GET_URI].token,
+                                  wsi->utf8_token[WSI_TOKEN_GET_URI].token_len);
                        return 0;
                }