]> source.dussan.org Git - rspamd.git/commitdiff
Send Content-Type header in Vault create request 3188/head
authorPhillip Schichtel <pschichtel@users.noreply.github.com>
Mon, 16 Dec 2019 00:05:48 +0000 (01:05 +0100)
committerPhillip Schichtel <phillip@schich.tel>
Mon, 16 Dec 2019 00:44:26 +0000 (01:44 +0100)
lualib/rspamadm/vault.lua

index 0dadaaeb4828d4ccf3ae842ce976f67f7bfba3f1..d0b448a8d401829fd715a989ccd4af83751d2072 100644 (file)
@@ -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
+}