Commit 9ace7db2 authored by Augustin-FL's avatar Augustin-FL
Browse files

simplify online_rest

parent 84151350
...@@ -202,7 +202,7 @@ _online_rest() { ...@@ -202,7 +202,7 @@ _online_rest() {
_debug2 _online_url "$_online_url" _debug2 _online_url "$_online_url"
export _H1="Authorization: Bearer $ONLINE_API_KEY" export _H1="Authorization: Bearer $ONLINE_API_KEY"
export _H2="X-Pretty-JSON: 1" export _H2="X-Pretty-JSON: 1"
if [ "$data" ] || [ "$m" = "PATCH" ] || [ "$m" = "POST" ] || [ "$m" = "PUT" ] || [ "$m" = "DELETE" ]; then if [ "$data" ] || [ "$m" != "GET" ]; then
_debug data "$data" _debug data "$data"
response="$(_post "$data" "$_online_url" "" "$m")" response="$(_post "$data" "$_online_url" "" "$m")"
else else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment