| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | CGI: Don't hang on directory with no index | Eyal Sawady | 2020-11-15 | 1 | -0/+8 |
| | | |||||
| * | CGI: Fix paths which end in '/' | Eyal Sawady | 2020-11-15 | 1 | -8/+21 |
| | | |||||
| * | Set CWD to cgi-bin when executing scripts | Drew DeVault | 2020-11-08 | 1 | -0/+4 |
| | | |||||
| * | Fix double free | Drew DeVault | 2020-11-08 | 1 | -0/+1 |
| | | |||||
| * | check if file served as cgi is executable | René Wagner | 2020-11-08 | 1 | -0/+6 |
| | | | | | | if not, send a response 50 to the client fixes ~sircmpwn/gmni#47 | ||||
| * | fix typo in GATEWAY_INTERFACE value | dbandstra | 2020-11-08 | 1 | -1/+1 |
| | | |||||
| * | Fix memory leaks | Tom Lebreux | 2020-11-08 | 1 | -0/+3 |
| | | |||||
| * | Implement URL rewrites with regex capture groups | Drew DeVault | 2020-11-01 | 1 | -1/+122 |
| | | |||||
| * | Change meaning of root (backwards incompatible!) | Drew DeVault | 2020-11-01 | 1 | -9/+10 |
| | | | | | | | | | | This takes the nginx approach to the "root" directive, which is simpler to implement and more consistent with more complex routing behaviors like regexp. The path component of the URL is now simply appended to the root to form the path to the file which should be served to the client. | ||||
| * | Implement regex route matching | Drew DeVault | 2020-11-01 | 1 | -2/+16 |
| | | |||||
| * | Implement MIME database support | Drew DeVault | 2020-10-28 | 1 | -1/+1 |
| | | |||||
| * | CGI: Fix SCRIPT_NAME variable | Drew DeVault | 2020-10-26 | 1 | -3/+6 |
| | | |||||
| * | CGI: set PATH_INFO | Drew DeVault | 2020-10-25 | 1 | -16/+48 |
| | | |||||
| * | Initial support for CGI scripts | Drew DeVault | 2020-10-25 | 1 | -0/+83 |
| | | |||||
| * | Initial implementation of a routing table | Drew DeVault | 2020-10-25 | 1 | -4/+49 |
| | | |||||
| * | Overhaul network I/O to be async for real | Drew DeVault | 2020-10-25 | 1 | -0/+1 |
| | | | | | | Had to totally cut off OpenSSL from the network fd because obviously OpenSSL is just going to wreck our shit | ||||
| * | add a missing "/" to autoindex paths | io mintz | 2020-10-15 | 1 | -2/+1 |
| | | | | | | | | | | | | | | | | | | | | | With the following directory structure: /srv/gmni: baz/ foo/ /srv/gmni/baz: a /srv/gmni/foo: bar/ /srv/gmni/foo/bar: b trying to access gemini://somesite/ with autoindex=on works, but accessing /foo fails because it tries to stat /srv/gmni/foobar instead of /srv/gmni/foo/bar. This commit fixes that by adding a trailing slash. | ||||
| * | serve: fix gcc-9.3.0 error in serve_autoindex | William Casarin | 2020-10-15 | 1 | -1/+1 |
| | | | | | | | | | | | | | | gcc 9.3.0 catches an off-by-one error with strncat in serve_autoindex where it might not write a 0 byte: In function ‘strncat’, inlined from ‘serve_autoindex’ at src/serve.c:60:3: /nix/store/...glibc-2.31-dev/include/bits/string_fortified.h:136:10: error: ‘__builtin___strncat_chk’ specified bound 4097 equals destination size [-Werror=stringop-overflow=] Signed-off-by: William Casarin <jb55@jb55.com> | ||||
| * | return false on request_validate errors | Chris Vittal | 2020-10-12 | 1 | -1/+4 |
| | | | | | | This will report proper errors to clients rather than continuing on with request processing. | ||||
| * | Implement autoindex option | Drew DeVault | 2020-09-26 | 1 | -19/+144 |
| | | |||||
| * | Rehome some logic from server.c -> serve.c | Drew DeVault | 2020-09-26 | 1 | -0/+128 |
