commit - ce09569f7b3bf13665ac1603cc9a284dbd975274
commit + 7a4ae106ec2be7bdac6a65d3bae8dd93149ec9ec
blob - e428aaa35c4d093f56b47606b6b10f4ea19b13fb
blob + cea11e201d354b470cf62b9c6135d43ddb0a2fd1
--- regress/lib.sh
+++ regress/lib.sh
failed=
-gg="./gg"
+gg="./../gg"
gmid="./../gmid"
current_test=
# usage: get <path>
# return the body of the request on stdout
get() {
- $gg -T10 -b $ggflags "gemini://localhost:10965/$1"
+ $gg -T10 $ggflags "gemini://localhost:10965/$1" || true
}
# usage: head <path>
# return the meta response line on stdout
head() {
- $gg -T10 -h $ggflags "gemini://localhost:10965/$1"
+ $gg -T10 -d header $ggflags "gemini://localhost:10965/$1" || true
}
# usage: raw <path>
# return both header and body
raw() {
- $gg -T10 $ggflags "gemini://localhost:10965/$1"
+ $gg -T10 -dwhole $ggflags "gemini://localhost:10965/$1" || true
}
# usage: fetch <path>