summaryrefslogtreecommitdiff
path: root/nocompile/bin/mime-type
diff options
context:
space:
mode:
authorEpoch Qwert <epoch@53flpnlls43fcguy.onion>2014-11-27 03:10:16 -0600
committerEpoch Qwert <epoch@53flpnlls43fcguy.onion>2014-11-27 03:10:16 -0600
commit59bcef5c27540527fc4ca1007e9cfea5783ba233 (patch)
tree583c651dcd7d6fff34db26805b4606fa45a90aac /nocompile/bin/mime-type
parent8b1c2f7e40f9c7ae77d3afb9f3eec21886c8f060 (diff)
downloadmisc-59bcef5c27540527fc4ca1007e9cfea5783ba233.tar.gz
misc-59bcef5c27540527fc4ca1007e9cfea5783ba233.zip
updated httpd.c to use different dirs for sites and vhosts
updated gopherd.sh to use the new rdns script rdns script just wraps dig -x and outputs a real hostname instead of one ending with a '.' rebuild.sh got a cd added to the top so it can be run from somewhere else mime-type got an error line commented out.
Diffstat (limited to 'nocompile/bin/mime-type')
-rwxr-xr-xnocompile/bin/mime-type4
1 files changed, 2 insertions, 2 deletions
diff --git a/nocompile/bin/mime-type b/nocompile/bin/mime-type
index 71982d9..2b1bad0 100755
--- a/nocompile/bin/mime-type
+++ b/nocompile/bin/mime-type
@@ -4,10 +4,10 @@ MAIN="$(echo "${TYPE}" | cut -d/ -f1)"
SUB="$(echo "${TYPE}" | cut -d/ -f2)"
if [ "_${MAIN}" = "_inode" ];then
printf "text/plain\r\n"
- printf "this is a directory or symlink! wtf?!?"
+# printf "this is a directory or symlink! wtf?!?" #ssssshhhhh
TYPE="text/plain"
fi
-if [ "_${MAIN}" = "_text" -a "_${SUB}" != "_html"];then
+if [ "_${MAIN}" = "_text" -a "_${SUB}" != "_html" ];then
TYPE="text/plain"
fi
printf "%s\r\n" "$TYPE"