mirror of
https://git.sr.ht/~sircmpwn/gmni
synced 2024-11-22 20:32:03 +01:00
Gemini client
9b95e38eef
I've noticed headers are not displayed in some cases with -i/-I specified. For example: echo "printf" | gmni -i gemini://drewdevault.com/cgi-bin/man.sh Output: empty echo "printf" | gmni -IL gemini://drewdevault.com/cgi-bin/man.sh - Output: 10 Search for a POSIX man page INPUT header is here, but no REDIRECT header appeared. The reason is headers processing is done after responses dispatch. So some responses (redirect and input) are processed and dropped before. Patch makes this logic a bit clearer imho: print response header before any processing if mode is not OMIT_HEADERS and then process response body if mode is not ONLY_HEADERS. It also deduplicates header printing as a bonus. |
||
---|---|---|
doc | ||
include | ||
src | ||
.gitignore | ||
config.sh | ||
configure | ||
COPYING | ||
Makefile | ||
README.md |
gmni - A Gemini client
This is a Gemini client. Included are:
- A CLI utility (like curl): gmni
- A line-mode browser: gmnlm
Dependencies:
Features:
- Page history
- Regex searches
- Bookmarks
Compiling
$ mkdir build && cd build
$ ../configure
$ make
# make install
Usage
See gmni(1)
, gmnlm(1)
.