Permalink
Browse files

Corrected incorrect behavior wrt OPTIONS requests; request body shoul…

…d be shown and expected by default. To see headers use -v option for resty.
  • Loading branch information...
1 parent 83eabaf commit 656253d3de2c72f9d4da33259990abc43bf86af2 @micha committed Jul 26, 2011
Showing with 0 additions and 1 deletion.
  1. +0 −1 resty
View
1 resty
@@ -80,7 +80,6 @@ function resty() {
[ "$1" = "-Z" ] && raw="yes" && [[ $# > 0 ]] && shift
[ -n "$dat" ] && opt="--data-binary"
[ "$method" = "HEAD" ] && opt="-I" && raw="yes"
- [ "$method" = "OPTIONS" ] && opt="-I" && raw="yes"
eval "args2=( $(cat "$confdir/$domain" 2>/dev/null |sed 's/^ *//' |grep ^$method |cut -b $((${#method}+2))-) )"
res=$((((curl -sLv $opt "$dat" -X $method \
-b "$cookies/$domain" -c "$cookies/$domain" \

0 comments on commit 656253d

Please sign in to comment.