From c760d7c9bd14d7e56ae1553a0b3c4a1258448686 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Sat, 3 Jul 2021 14:14:31 +0100 Subject: CGI support --- server/test/resources/dir/bad-cgi | 4 ++++ server/test/resources/dir/bad-response | 3 +++ server/test/resources/dir/cgi | 4 ++++ server/test/resources/dir/sub/cgi | 6 ++++++ server/test/resources/dir/sub/empty | 0 5 files changed, 17 insertions(+) create mode 100755 server/test/resources/dir/bad-cgi create mode 100755 server/test/resources/dir/bad-response create mode 100755 server/test/resources/dir/cgi create mode 100755 server/test/resources/dir/sub/cgi create mode 100644 server/test/resources/dir/sub/empty (limited to 'server/test/resources/dir') diff --git a/server/test/resources/dir/bad-cgi b/server/test/resources/dir/bad-cgi new file mode 100755 index 0000000..0ec31e2 --- /dev/null +++ b/server/test/resources/dir/bad-cgi @@ -0,0 +1,4 @@ +#!/bin/bash + +echo -e "20 text/gemini\r\n" +exit 1 diff --git a/server/test/resources/dir/bad-response b/server/test/resources/dir/bad-response new file mode 100755 index 0000000..c9bedb5 --- /dev/null +++ b/server/test/resources/dir/bad-response @@ -0,0 +1,3 @@ +#!/bin/bash + +echo "20 text/gemini" diff --git a/server/test/resources/dir/cgi b/server/test/resources/dir/cgi new file mode 100755 index 0000000..05a3e53 --- /dev/null +++ b/server/test/resources/dir/cgi @@ -0,0 +1,4 @@ +#!/bin/bash + +echo -e "20 text/gemini\r\n" +env diff --git a/server/test/resources/dir/sub/cgi b/server/test/resources/dir/sub/cgi new file mode 100755 index 0000000..05ba716 --- /dev/null +++ b/server/test/resources/dir/sub/cgi @@ -0,0 +1,6 @@ +#!/bin/bash + +echo -e "20 text/gemini\r\n" +echo "SHOULD NOT RUN" +exit 1 + diff --git a/server/test/resources/dir/sub/empty b/server/test/resources/dir/sub/empty new file mode 100644 index 0000000..e69de29 -- cgit v1.2.3