We only got here if no mount matched, so we should
affirmitively send a 404
Signed-off-by: Andy Green <andy@warmcat.com>
switch (reason) {
case LWS_CALLBACK_HTTP:
#ifndef LWS_NO_SERVER
+ if (lws_return_http_status(wsi, HTTP_STATUS_NOT_FOUND, NULL))
+ return -1;
+
if (lws_http_transaction_completed(wsi))
#endif
return -1;
break;
}
#endif
+
break;
#ifdef LWS_WITH_CGI
"http-only", /* name */
callback_http_dummy, /* callback */
0, /* per_session_data_size */
- 0, /* max frame size / rx buffer */
+ 4096, /* max frame size / rx buffer */
},
/*
* the other protocols are provided by lws plugins