1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-23 00:00:06 +01:00
libwebsockets/lib
Patrick Gansterer 387e50bd8f Allow serving files without known mimetype
RFC2616 only says that any HTTP/1.1 message containing an entity-body
SHOULD include a Content-Type header field defining the media type of
that body.
RFC2119 defines SHOULD as: This word mean that there may exist valid
reasons in particular circumstances to ignore a particular item, but
the full implications must be understood and carefully weighed before
choosing a different course.

AG: this isn't an oversight, it's paranoia about sending out /etc/passwd
or /etc/shadow accidentally.

I agree it should be allowed if people really want to override it.  But
the default should remain like it is I think.

I adapted the patch to allow the extra mimetype "*": "" to be declared on
a mount, as a wildcard match that serves the file without a Content-Type.
2016-08-14 19:28:29 +08:00
..
.gitignore Ignoring linux build files 2013-01-09 15:46:11 +08:00
alloc.c esp8266 initial support 2016-08-10 21:20:23 +08:00
base64-decode.c base64 decode fix lengths 2016-08-10 21:20:23 +08:00
client-handshake.c client fixups after esp8266 2016-08-10 21:23:01 +08:00
client-parser.c ws ping pong on idle connections 2016-08-10 21:20:23 +08:00
client.c client-add-PUSH-http-body-capability 2016-08-10 21:23:01 +08:00
context.c esp8266 initial support 2016-08-10 21:20:23 +08:00
daemonize.c Revert changes in daemonize.c from commit 22d6f39e7f 2016-06-02 13:00:13 +08:00
extension-permessage-deflate.c replace LWS_MAX_SOCKET_IO_BUF with context creation info pt_serv_buf_size 2016-05-19 12:34:35 +08:00
extension-permessage-deflate.h extension permessage deflate 2016-01-11 11:34:01 +08:00
extension.c documentation convert to doxygen 2016-07-14 08:57:27 +08:00
getifaddrs.c whitespace trailing mass cleanout 2015-12-14 08:52:03 +08:00
getifaddrs.h esp8266 initial support 2016-08-10 21:20:23 +08:00
handshake.c esp8266 initial support 2016-08-10 21:20:23 +08:00
header.c esp8266 initial support 2016-08-10 21:20:23 +08:00
hpack.c http2 update integration 2016-04-13 11:53:40 +08:00
http2.c http2 handle error path on ensure_user_space 2016-04-23 09:36:18 +08:00
huftable.h http2 hpack basic decode ok including huff 2014-10-12 08:38:16 +08:00
lejp-conf.c esp8266 initial support 2016-08-10 21:20:23 +08:00
lejp.c documentation convert to doxygen 2016-07-14 08:57:27 +08:00
lejp.h documentation convert to doxygen 2016-07-14 08:57:27 +08:00
lextable-strings.h esp8266 initial support 2016-08-10 21:20:23 +08:00
lextable.h http2 update integration 2016-04-13 11:53:40 +08:00
libev.c plugins 2016-04-07 09:38:08 +08:00
libuv.c windows adapt plugin name format vs functions 2016-05-25 21:44:30 +08:00
libwebsockets.c client-add-PUSH-http-body-capability 2016-08-10 21:23:01 +08:00
libwebsockets.h client-add-PUSH-http-body-capability 2016-08-10 21:23:01 +08:00
lws-plat-esp8266.c esp8266 initial support 2016-08-10 21:20:23 +08:00
lws-plat-mbed3.c documentation convert to doxygen 2016-07-14 08:57:27 +08:00
lws-plat-mbed3.cpp windows detect client connection error 2016-07-14 08:57:27 +08:00
lws-plat-unix.c windows detect client connection error 2016-07-14 08:57:27 +08:00
lws-plat-win.c Recheck slot when an FD gets closed and make formatting consistent 2016-07-14 08:57:28 +08:00
minihuf.c whitespace trailing mass cleanout 2015-12-14 08:52:03 +08:00
minilex.c whitespace trailing mass cleanout 2015-12-14 08:52:03 +08:00
output.c esp8266 initial support 2016-08-10 21:20:23 +08:00
parsers.c client-add-PUSH-http-body-capability 2016-08-10 21:23:01 +08:00
pollfd.c client fixups after esp8266 2016-08-10 21:23:01 +08:00
private-libwebsockets.h client-add-PUSH-http-body-capability 2016-08-10 21:23:01 +08:00
rewrite.c check oom on lws_malloc 2016-05-12 21:04:33 +08:00
server-handshake.c esp8266 initial support 2016-08-10 21:20:23 +08:00
server.c Allow serving files without known mimetype 2016-08-14 19:28:29 +08:00
service.c client-add-PUSH-http-body-capability 2016-08-10 21:23:01 +08:00
sha-1.c polarssl implementation 2016-04-18 20:05:43 +08:00
smtp.c documentation convert to doxygen 2016-07-14 08:57:27 +08:00
ssl-client.c client ssl add flag to control server cert hostname check 2016-07-14 08:57:28 +08:00
ssl-http2.c http2 update integration 2016-04-13 11:53:40 +08:00
ssl-server.c openssl allow set clear of ssl options from info 2016-06-10 11:09:27 +08:00
ssl.c ws ping pong on idle connections 2016-08-10 21:20:23 +08:00