LWS_WITHOUT_DEBUG fix unused var
Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
b8639543bc
commit
93d947c924
1 changed files with 2 additions and 0 deletions
|
@ -191,12 +191,14 @@ int lws_http_action(struct libwebsocket_context *context,
|
|||
WSI_TOKEN_HTTP_COLON_PATH,
|
||||
#endif
|
||||
};
|
||||
#ifdef _DEBUG
|
||||
static const char * const method_names[] = {
|
||||
"GET", "POST", "OPTIONS", "PUT", "PATCH", "DELETE",
|
||||
#ifdef LWS_USE_HTTP2
|
||||
":path",
|
||||
#endif
|
||||
};
|
||||
#endif
|
||||
|
||||
/* it's not websocket.... shall we accept it as http? */
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue