Pass URI length to LWS_CALLBACK_HTTP.
authorDavid Galeano <davidgaleano@turbulenz.biz>
Thu, 10 Jan 2013 02:13:19 +0000 (10:13 +0800)
committerAndy Green <andy.green@linaro.org>
Thu, 10 Jan 2013 04:45:53 +0000 (12:45 +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;
                }