Commits


amused-web: rename variable for clarity


amused-web: strip the query from the request path


amused-web: set http.[ch] as public domain code


amused-web: set the chunking earlier


amused-web: simplify parsing of the first line of the request


amused-web: log the HTTP version too


amused-web: reply with the right HTTP version


amused-web: rework client handling on top of bufio / ev


amused-web: fix reading POST body Some clients seem to include CRLF in the POST' Content-length, some don't. Ignoring when clients send more data then advertised and stripping CRLF at the end works fine across firefox, w3m and netsurf.


use Transfer-Encoding: chunked only on HTTP/1.1 w3m (HTTP/1.0) doesn't seem to like it.


fix the POST handling


add amused-web, a web interface to control amused It's a first stab at it, some planned features (like the search) are missing but the basic ones work. It's not hooked in the main build yet.