Skip to content

Commit

Permalink
(PE-36076) Remove content type from certificate reject
Browse files Browse the repository at this point in the history
Previously, when a `DELETE` request was  sent to `puppet-ca/v1/certificate_status/<nodename>`
a 204 response was sent with a malformed content-type header. This commit removes the header.
  • Loading branch information
artlawson committed Jul 31, 2023
1 parent ba245f6 commit d178b78
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit d178b78

Please sign in to comment.