1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-23 00:00:06 +01:00
libwebsockets/lib/roles/http
Andy Green a60e60bc29 http: server: support HEAD via mount
Until now we parse HEAD requests but don't properly fulfil them.

This adds enough that if the request pointed to a valid mount,
it will send the headers and complete the transaction without
sending the body.

Test with

$ (echo -n -e "GET / HTTP/1.0\r\nHost: default\r\n\r\n"; sleep 2) | nc  127.0.0.1 7681
2019-08-01 12:56:29 +01:00
..
client client: add more descriptive string cases 2019-07-24 16:48:24 -07:00
compression COVA10299: check lws_change_pollfd 2019-07-13 13:39:50 -07:00
server http: server: support HEAD via mount 2019-08-01 12:56:29 +01:00
header.c sse: drop the ah when the sse connection starts 2019-01-30 14:38:11 +08:00
lextable-strings.h plat: refactor private headers and split files 2018-06-20 16:41:27 +08:00
lextable.h refactor role ops 2018-04-11 13:39:42 +08:00
minilex.c refactor role ops 2018-04-11 13:39:42 +08:00
private.h http: make lws_http_get_uri_and_method public 2019-07-14 12:08:51 -07:00