chore: update landerctl to use location header
This commit is contained in:
parent
5d0cafbc27
commit
eff1b13065
2 changed files with 5 additions and 1 deletions
|
|
@ -9,6 +9,7 @@ if [ "$1" = g ]; then
|
|||
|
||||
elif [ "$1" = s ]; then
|
||||
curl \
|
||||
-w "${URL}%header{location}" \
|
||||
-XPOST \
|
||||
-d "$2" \
|
||||
-H "X-Api-Key: $API_KEY" \
|
||||
|
|
@ -16,6 +17,7 @@ elif [ "$1" = s ]; then
|
|||
|
||||
elif [ "$1" = sl ]; then
|
||||
curl \
|
||||
-w "${URL}%header{location}" \
|
||||
-XPOST \
|
||||
-d "$2" \
|
||||
-H "X-Api-Key: $API_KEY" \
|
||||
|
|
@ -23,6 +25,7 @@ elif [ "$1" = sl ]; then
|
|||
|
||||
elif [ "$1" = p ]; then
|
||||
curl \
|
||||
-w "${URL}%header{location}" \
|
||||
-XPOST \
|
||||
-H "X-Api-Key: $API_KEY" \
|
||||
--data-binary @"$2" \
|
||||
|
|
@ -30,6 +33,7 @@ elif [ "$1" = p ]; then
|
|||
|
||||
elif [ "$1" = pl ]; then
|
||||
curl \
|
||||
-w "${URL}%header{location}" \
|
||||
-XPOST \
|
||||
-H "X-Api-Key: $API_KEY" \
|
||||
--data-binary @"$2" \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue