Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Really fix control_lib.sh. :/

  • Loading branch information...
commit e0773acf25529fc565da8a9f7dde306ce39f73b5 1 parent 8f8b785
@VictorLowther VictorLowther authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  updates/control_lib.sh
View
2  updates/control_lib.sh
@@ -20,7 +20,7 @@ try_to() {
}
__post_state() {
- local curlargs=(--connect-timeout 60 -s -L -X PUT -d "state=$1" \
+ local curlargs=(--connect-timeout 60 -s -L -X PUT -d "{ \"state\": \"$1\" }" \
-H "Accept: application/json" -H "Content-Type: application/json")
[[ $CROWBAR_KEY ]] && curlargs+=(-u "$CROWBAR_KEY" --digest --anyauth)
(unset http_proxy; curl "${curlargs[@]}" \
Please sign in to comment.
Something went wrong with that request. Please try again.