diff --git a/lib/server.c b/lib/server.c index df2524a7..7354d52f 100644 --- a/lib/server.c +++ b/lib/server.c @@ -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? */