Merge pull request #17 from bonidier/ovhapilib/add-put-data
ovhapilib bugfix: JSON datas must be set when PUT method is usedmaster
commit
9aecbca3d4
|
@ -65,7 +65,7 @@ OvhRequestApi()
|
|||
cmd+=(--target "${OVHAPI_TARGET}")
|
||||
fi
|
||||
|
||||
if [ "${method}" == "POST" ]; then
|
||||
if [ "${method}" == "POST" ] || [ "${method}" == "PUT" ]; then
|
||||
# double-quote data content for bash input
|
||||
data=$(printf "%q" "${data}")
|
||||
cmd+=(--data "${data}")
|
||||
|
|
Loading…
Reference in New Issue