From d178b78f77c52e1b5b00993c0a0b49651e04f97f Mon Sep 17 00:00:00 2001 From: Arthur Lawson Date: Mon, 31 Jul 2023 11:15:16 -0700 Subject: [PATCH] (PE-36076) Remove content type from certificate reject Previously, when a `DELETE` request was sent to `puppet-ca/v1/certificate_status/` a 204 response was sent with a malformed content-type header. This commit removes the header. --- src/clj/puppetlabs/services/ca/certificate_authority_core.clj | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/clj/puppetlabs/services/ca/certificate_authority_core.clj b/src/clj/puppetlabs/services/ca/certificate_authority_core.clj index ac8b86906..089017dd8 100644 --- a/src/clj/puppetlabs/services/ca/certificate_authority_core.clj +++ b/src/clj/puppetlabs/services/ca/certificate_authority_core.clj @@ -133,8 +133,7 @@ (let [response (ca/delete-certificate-request! ca-settings subject) outcomes->codes {:success 204 :not-found 404 :error 500}] (-> (rr/response (:message response)) - (rr/status ((response :outcome) outcomes->codes)) - (rr/content-type "text/plain")))) + (rr/status ((response :outcome) outcomes->codes))))) (schema/defn handle-get-ca-expirations [ca-settings :- ca/CaSettings]