1
0
mirror of https://git.sr.ht/~sircmpwn/gmni synced 2024-11-22 20:32:03 +01:00
Gemini client
Go to file
k1nkreet 9b95e38eef gmni: headers are not displayed for REDIRECT and INPUT responses in SHOW_HEADERS and ONLY_HEADERS modes
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.
2021-06-18 12:00:59 -04:00
doc Initial support for client side certificates 2021-03-05 08:29:02 -05:00
include gmnlm: create cert dir on 6x response 2021-03-09 08:08:45 -05:00
src gmni: headers are not displayed for REDIRECT and INPUT responses in SHOW_HEADERS and ONLY_HEADERS modes 2021-06-18 12:00:59 -04:00
.gitignore Re-add public headers 2020-10-24 13:56:50 -04:00
config.sh all: rewrite with BearSSL rather than OpenSSL 2021-03-04 10:59:37 -05:00
configure Implement basic client certs for gmnlm 2021-03-05 08:50:57 -05:00
COPYING Initial commit 2020-09-20 10:17:39 -04:00
Makefile Makefile: install libgmni.a with 644 perms 2021-03-07 15:13:09 -05:00
README.md all: rewrite with BearSSL rather than OpenSSL 2021-03-04 10:59:37 -05:00

gmni - A Gemini client

This is a Gemini client. Included are:

Dependencies:

  • A POSIX-like system and a C11 compiler
  • BearSSL
  • scdoc (optional)

Features:

  • Page history
  • Regex searches
  • Bookmarks

Screenshot of the line-mode browser

Compiling

$ mkdir build && cd build
$ ../configure
$ make
# make install

Usage

See gmni(1), gmnlm(1).