From cef609df80c1b75536acb600e584fe67479fab37 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Fri, 4 Dec 2015 11:57:48 +0800 Subject: [PATCH] fix Uri Args header name Signed-off-by: Andy Green --- lib/header.c | 3 +++ lib/libwebsockets.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/header.c b/lib/header.c index 8e985db..663f45c 100644 --- a/lib/header.c +++ b/lib/header.c @@ -24,6 +24,9 @@ const unsigned char *lws_token_to_string(enum lws_token_indexes token) { + if (token == WSI_TOKEN_HTTP_URI_ARGS) + return (unsigned char *)"Uri-Args:"; + if ((unsigned int)token >= ARRAY_SIZE(set)) return NULL; return (unsigned char *)set[token]; diff --git a/lib/libwebsockets.c b/lib/libwebsockets.c index da78fbf..03155a7 100644 --- a/lib/libwebsockets.c +++ b/lib/libwebsockets.c @@ -973,7 +973,7 @@ libwebsocket_set_proxy(struct lws_context *context, const char *proxy) return lws_set_proxy(context, proxy); } -#undef lws_context_destroy +#undef libwebsocket_context_destroy LWS_VISIBLE LWS_EXTERN void libwebsocket_context_destroy(struct lws_context *context) { @@ -1029,7 +1029,7 @@ libwebsocket_service_fd(struct lws_context *context, return lws_service_fd(context, pollfd); } -#undef lws_context_user +#undef libwebsocket_context_user LWS_VISIBLE LWS_EXTERN void * libwebsocket_context_user(struct lws_context *context) { -- 2.7.4