Tree for my work on http://tools.suckless.org/quark/
Find a file
Laslo Hunhold a36b901d40
Add http_send_body() and data_send_error() and refactor
This turns the data-functions into the only functions "allowed"
to send body-data (called with http_send_body()). The previous (hacky)
approach of doing this in http_send_header() is not only out of place,
it's an easy source of bugs given, for instance, the sending of body
data is not expected with HEAD-requests.

Given html_escape() is now only used in data.c, we move it there from
util.c and make it a static method again.

Signed-off-by: Laslo Hunhold <dev@frign.de>
2020-08-29 00:49:16 +02:00
arg.h Correct arg.h license 2018-07-16 11:49:51 +02:00
config.def.h Specify UTF-8 for non-binary content-types 2019-01-02 17:04:23 +01:00
config.mk Be extra pedantic again and remove all warnings 2018-03-05 00:30:53 +01:00
data.c Add http_send_body() and data_send_error() and refactor 2020-08-29 00:49:16 +02:00
data.h Add http_send_body() and data_send_error() and refactor 2020-08-29 00:49:16 +02:00
http.c Add http_send_body() and data_send_error() and refactor 2020-08-29 00:49:16 +02:00
http.h Add http_send_body() and data_send_error() and refactor 2020-08-29 00:49:16 +02:00
LICENSE Use timegm() instead of mktime() to generate UNIX-timestamp 2020-07-23 16:48:34 +02:00
main.c Add http_send_body() and data_send_error() and refactor 2020-08-29 00:49:16 +02:00
Makefile Rename resp.{c,h} to data.{c,h} 2020-08-28 23:29:54 +02:00
quark.1 Mention default behaviour in the manual when the host is not given 2020-08-23 13:36:56 +02:00
sock.c Refactor sock_get_uds() a bit 2020-08-23 13:35:49 +02:00
sock.h Ensure const-correctness where possible and refactor parse_range() 2020-08-05 18:28:21 +02:00
util.c Add http_send_body() and data_send_error() and refactor 2020-08-29 00:49:16 +02:00
util.h Add http_send_body() and data_send_error() and refactor 2020-08-29 00:49:16 +02:00