Upload Modules
This commit is contained in:
16
ngx_fancyindex/t/bug61-empty-file-segfault.test
Normal file
16
ngx_fancyindex/t/bug61-empty-file-segfault.test
Normal file
@@ -0,0 +1,16 @@
|
||||
#! /bin/bash
|
||||
cat <<---
|
||||
Bug #61: Listing a directory with an empty file crashes Nginx
|
||||
https://github.com/aperezdc/ngx-fancyindex/issues/61
|
||||
--
|
||||
|
||||
# Prepare an empty directory with an empty file
|
||||
mkdir -p "${TESTDIR}/bug61"
|
||||
touch "${TESTDIR}/bug61/bug61.txt"
|
||||
|
||||
nginx_start 'fancyindex_exact_size off;'
|
||||
content=$(fetch /bug61/)
|
||||
test -n "${content}" || fail "Empty response"
|
||||
echo "Response:"
|
||||
echo "${content}"
|
||||
nginx_is_running || fail "Nginx died"
|
||||
Reference in New Issue
Block a user