Author: Adam <git@apiote.xyz>
add HTTP methods to switch
server2.sh | 2 +-
diff --git a/server2.sh b/server2.sh index 38c4d131f704eee20fa7591ed4b288c2b788ad61..0560d5693673c8683fb97ccbb0838d4a0b9cab08 100755 --- a/server2.sh +++ b/server2.sh @@ -262,7 +262,7 @@ cr=$(printf "\r") while read -r line; do line="${line%"$cr"}" case "$line" in - GET*|POST*|PUT*|DELETE*) + GET*|POST*|PUT*|DELETE*|HEAD*|OPTIONS*|TRACE*) # shellcheck disable=SC2086 set -- $line method=$1