[Libwebsockets] Very minor bugs(?) in protocol_post_demo.c
colinpauladams at gmail.com
Sat May 21 09:08:23 CEST 2016
First the header line:
ws protocol handler plugin for "dumb increment"
s/dumb increment/post demo/
I wouldn't have nothered reporting that if I wasn't also going to mention
if (lws_hdr_total_length(wsi, WSI_TOKEN_POST_URI))
This appears to me to be a big no-op (modulo debugging message), as:
Should the conditional evaluate to true, then we return 0. Otherwise we
fall out of the switch and return 0. So the whole thing is equivalent to
the default case.
Or does lws_hdr_total_length have necessary side effects?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libwebsockets