diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/server.php | 5 | ||||
-rw-r--r-- | test/sub/index.gmi | 3 | ||||
-rw-r--r-- | test/sub/sub.txt | 1 |
3 files changed, 5 insertions, 4 deletions
diff --git a/test/server.php b/test/server.php index c90942a..adc9d05 100644 --- a/test/server.php +++ b/test/server.php @@ -13,6 +13,9 @@ $server = new Server( ], ); -$server->onRequest(new DocumentServer(__DIR__)); +$server->onRequest(new DocumentServer( + documentRoot: __DIR__, + useDirectoryListing: true +)); $server->listen(); diff --git a/test/sub/index.gmi b/test/sub/index.gmi deleted file mode 100644 index 193cc4d..0000000 --- a/test/sub/index.gmi +++ /dev/null @@ -1,3 +0,0 @@ -subfolder - -=> / diff --git a/test/sub/sub.txt b/test/sub/sub.txt new file mode 100644 index 0000000..371b205 --- /dev/null +++ b/test/sub/sub.txt @@ -0,0 +1 @@ +textcontent |