commit - c143dcfa85413062ac50f526c8b560bbeb9e8566
commit + 4b5b1e82a9459f7b4c11a31da4409c5b527730e8
blob - 0cde4b1dad5c862b6926789ccd81fd490c87093f
blob + 4d3b75d5d88013943550515b2d13beaf1e97028f
--- regress/regress
+++ regress/regress
run_test test_fastcgi
run_test test_macro_expansion
run_test test_174_bugfix
+run_test test_proxy_relay_to
tests_done
blob - a929dc8d3f4f657abe18fc7d4ca6f4c081ae87af
blob + efd3d6db67703236d3c52421a731b4ec8006e7cc
--- regress/tests.sh
+++ regress/tests.sh
fetch /favicon.txt
check_reply "51 not found" || return 1
done
+}
+
+test_proxy_relay_to() {
+ gen_config '' ''
+ # append config for second host
+ cat <<EOF >> reg.conf
+server "localhost.local" {
+ cert "$PWD/cert.pem"
+ key "$PWD/key.pem"
+ proxy relay-to "localhost:$port"
}
+EOF
+ run
+
+ gg_flags="-P localhost:$port -H localhost.local"
+
+ fetch /
+ check_reply "20 text/gemini" "# hello world"
+}