commit 9b8a478: Send Content-Type header in Vault create request

Phillip Schichtel phillip at schich.tel
Mon Dec 16 11:56:06 UTC 2019


Author: Phillip Schichtel
Date: 2019-12-16 01:05:48 +0100
URL: https://github.com/rspamd/rspamd/commit/9b8a47803d5c332c377a59341bca27e1c13f5d2a (refs/pull/3188/head)

Send Content-Type header in Vault create request

---
 lualib/rspamadm/vault.lua | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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
+}


More information about the Commits mailing list