diff options
author | tv <tv@vix> | 2010-02-02 04:49:37 +0100 |
---|---|---|
committer | tv <tv@vix> | 2010-02-02 04:49:37 +0100 |
commit | 466b8c5103208e7393fdb710d275e7d687be2592 (patch) | |
tree | 15a9c626d3d738f2bc5ae612d45e57357865f9e4 /htgend | |
parent | 5160b7d9d657d637f3c135d4b8bb9bf31cfd4ce7 (diff) |
Added default cases for $Host and $Method
Added default case for $Host: Forbidded
Added default case for $Method: Not Implemented
Added preliminary Cache-Control
Diffstat (limited to 'htgend')
-rwxr-xr-x | htgend | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,7 +1,8 @@ #! /bin/sh set -euf HTGEN_PROG="${HTGEN_SH-$(dirname "$(readlink -f "$0")")/htgen.sh}" -HTGEN_HOST="${HTGEN_HOST-0}" +HTGEN_HOST="${HTGEN_HOST-0.0.0.0}" HTGEN_PORT="${HTGEN_PORT-42380}" TCPSERVER_OPTS='-c 423 -t 2 -D' +echo "#### htgend $HTGEN_HOST:$HTGEN_PORT" >&2 exec tcpserver $TCPSERVER_OPTS "$HTGEN_HOST" "$HTGEN_PORT" "$HTGEN_PROG" |