diff options
author | Phillip Schichtel <pschichtel@users.noreply.github.com> | 2019-12-16 01:05:48 +0100 |
---|---|---|
committer | Phillip Schichtel <phillip@schich.tel> | 2019-12-16 01:44:26 +0100 |
commit | 9b8a47803d5c332c377a59341bca27e1c13f5d2a (patch) | |
tree | dcd197aefb42d8ab37a81cb0c827dbd7c57ce972 /lualib | |
parent | bae50a7929a1acca7c33ae26d41261f7e3217d1d (diff) | |
download | rspamd-9b8a47803d5c332c377a59341bca27e1c13f5d2a.tar.gz rspamd-9b8a47803d5c332c377a59341bca27e1c13f5d2a.zip |
Send Content-Type header in Vault create request
Diffstat (limited to 'lualib')
-rw-r--r-- | lualib/rspamadm/vault.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lualib/rspamadm/vault.lua b/lualib/rspamadm/vault.lua index 0dadaaeb4..d0b448a8d 100644 --- a/lualib/rspamadm/vault.lua +++ b/lualib/rspamadm/vault.lua @@ -290,6 +290,7 @@ local function create_and_push_key(opts, domain, existing) url = uri, method = 'put', headers = { + ['Content-Type'] = 'application/json', ['X-Vault-Token'] = opts.token }, body = { @@ -493,6 +494,7 @@ local function roll_handler(opts, domain) url = uri, method = 'put', headers = { + ['Content-Type'] = 'application/json', ['X-Vault-Token'] = opts.token }, body = { @@ -564,4 +566,4 @@ return { handler = handler, description = parser._description, name = 'vault' -}
\ No newline at end of file +} |