diff options
author | typebrook <typebrook@gmail.com> | 2020-02-01 11:38:17 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2020-02-01 11:38:17 +0800 |
commit | 736c7e4639c0fc795a60db1b087b8434924eb63f (patch) | |
tree | 971b0065c1a65686b1e0b1ff0d6af192c890b21f | |
parent | 183fca611aa678b7af7ee447f8ab462323dbe7e4 (diff) |
update
-rwxr-xr-x | scripts/gist | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/gist b/scripts/gist index 16102e8..4e2d311 100755 --- a/scripts/gist +++ b/scripts/gist | |||
@@ -165,7 +165,7 @@ httpGet() | |||
165 | case "$configuredClient" in | 165 | case "$configuredClient" in |
166 | curl) [[ -n $token ]] && header="--header Authorization: token $token"; curl -A curl -s $header "$@" ;; | 166 | curl) [[ -n $token ]] && header="--header Authorization: token $token"; curl -A curl -s $header "$@" ;; |
167 | wget) [[ -n $token ]] && header="--header Authorization: token $token"; wget -qO- $header "$@" ;; | 167 | wget) [[ -n $token ]] && header="--header Authorization: token $token"; wget -qO- $header "$@" ;; |
168 | httpie) [[ -n $token ]] && header="'Authorization:token $token'"; http -b GET "$@" "$header";; | 168 | httpie) [[ -n $token ]] && header="Authorization:token $token"; http -b GET "$@" "$header";; |
169 | fetch) fetch -q "$@" ;; | 169 | fetch) fetch -q "$@" ;; |
170 | esac | 170 | esac |
171 | } | 171 | } |