diff options
author | Teddy Wing | 2018-04-19 20:58:37 +0200 |
---|---|---|
committer | Teddy Wing | 2018-04-19 20:58:37 +0200 |
commit | b54a0725009c52c1a049cce18334a5f80a06783b (patch) | |
tree | d7461f6c45df3a3bbbd8f1906148272232c550a2 | |
parent | 3bf3604de7b63549d06d65c216e11e74247d2b92 (diff) | |
download | redprine-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-x | redprine | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -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" \ |