From f7eefc09f4a36ad8f1ce653ae968230c72971b5a Mon Sep 17 00:00:00 2001 From: typebrook Date: Tue, 4 Feb 2020 11:36:29 +0800 Subject: update --- scripts/gist | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/gist b/scripts/gist index d614c98..8a82a4b 100755 --- a/scripts/gist +++ b/scripts/gist @@ -173,7 +173,8 @@ http_method() { wget --method=$METHOD -qO- $extra "$header" $extra2 $http_data $@ ;; # TODO add other methods httpie) [[ -n $token ]] && header="Authorization:token $token" - http -b $METHOD $@ "$header";; + [[ $METHOD =~ (POST|PATCH) ]] && extra2="@$http_data" + http -b $METHOD $@ "$header" $extra2 ;; fetch) fetch -q "$@" ;; esac } -- cgit v1.2.3-70-g09d2