From 82e883f7ad1574b09f9516d389dab348ca3911ec Mon Sep 17 00:00:00 2001 From: Andy Green Date: Sat, 21 May 2016 15:18:30 +0800 Subject: [PATCH] clean correct file comment at top and remove pointless LWS_CALLBACK_HTTP Signed-off-by: Andy Green --- plugins/protocol_post_demo.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/plugins/protocol_post_demo.c b/plugins/protocol_post_demo.c index af356f2..29145a6 100644 --- a/plugins/protocol_post_demo.c +++ b/plugins/protocol_post_demo.c @@ -1,5 +1,5 @@ /* - * ws protocol handler plugin for "dumb increment" + * ws protocol handler plugin for "POST demo" * * Copyright (C) 2010-2016 Andy Green * @@ -37,11 +37,6 @@ callback_post_demo(struct lws *wsi, enum lws_callback_reasons reason, int n; switch (reason) { - case LWS_CALLBACK_HTTP: - lwsl_debug("LWS_CALLBACK_HTTP\n"); - if (lws_hdr_total_length(wsi, WSI_TOKEN_POST_URI)) - return 0; - break; case LWS_CALLBACK_HTTP_BODY: lwsl_debug("LWS_CALLBACK_HTTP_BODY: len %d\n", (int)len); -- 2.7.4