1
0
Fork 0
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:
Andy Green 2013-05-03 21:13:35 +08:00
parent 6c72070fd4
commit 66986b2e85

View file

@ -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"
);