mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
log err if unable to open http file
Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
6c72070fd4
commit
66986b2e85
1 changed files with 1 additions and 0 deletions
|
@ -576,6 +576,7 @@ LWS_VISIBLE int libwebsockets_serve_http_file(struct libwebsocket_context *conte
|
|||
);
|
||||
|
||||
if (wsi->u.http.fd < 1) {
|
||||
lwsl_err("Unable to open '%s'\n", file);
|
||||
p += sprintf((char *)p,
|
||||
"HTTP/1.0 400 Bad\x0d\x0aServer: libwebsockets\x0d\x0a\x0d\x0a"
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue