aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2018-04-19 20:58:37 +0200
committerTeddy Wing2018-04-19 20:58:37 +0200
commitb54a0725009c52c1a049cce18334a5f80a06783b (patch)
treed7461f6c45df3a3bbbd8f1906148272232c550a2
parent3bf3604de7b63549d06d65c216e11e74247d2b92 (diff)
downloadredprine-b54a0725009c52c1a049cce18334a5f80a06783b.tar.bz2
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.
-rwxr-xr-xredprine1
1 files changed, 0 insertions, 1 deletions
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" \