From 584b3167002ddedeb1326678717460e5f72d8abc Mon Sep 17 00:00:00 2001 From: David Galeano Date: Thu, 10 Jan 2013 10:13:19 +0800 Subject: [PATCH] Pass URI length to LWS_CALLBACK_HTTP. --- lib/handshake.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/handshake.c b/lib/handshake.c index fda50b5a..a844b055 100644 --- a/lib/handshake.c +++ b/lib/handshake.c @@ -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; }