From b54a0725009c52c1a049cce18334a5f80a06783b Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Thu, 19 Apr 2018 20:58:37 +0200 Subject: update_redmine_status(): Remove `--head` argument from Curl call When I ran this code I got the following error: Warning: You can only select one HTTP request method! You asked for both POST Warning: (-d, --data) and HEAD (-I, --head). redprine: error: Redmine API error, status code Looks like in order to make my PUT request I need to get rid of the 'only headers' flag. --- redprine | 1 - 1 file changed, 1 deletion(-) diff --git a/redprine b/redprine index 0c797e9..e0ef1b0 100755 --- a/redprine +++ b/redprine @@ -158,7 +158,6 @@ function update_redmine_status () { local status_code=$( curl \ --output /dev/null \ - --head \ --write-out '%{http_code}' \ --header 'Content-Type: application/json' \ --header "X-Redmine-API-Key: $REDMINE_TOKEN" \ -- cgit v1.2.3