From e8d66d4129db62bf9d20cf50fd4f4d80cd94e87a Mon Sep 17 00:00:00 2001 From: Andrew Bonney Date: Fri, 28 Jul 2023 14:09:02 +0100 Subject: [PATCH] Correct default Content-Type for security.txt The security.txt RFC specifies a Content-Type of text/plain and charset of utf-8 [1]. This adjusts the defaults so line breaks are rendered correctly in a browser. [1] https://datatracker.ietf.org/doc/html/rfc9116#section-3 Change-Id: I39c2dab5108a815ef966bab0d708d6300eb1a4d1 (cherry picked from commit 97390e88e06557f3bafd68661c960ff5f94e024d) --- defaults/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index c832b49..80e2dac 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -303,7 +303,7 @@ haproxy_security_txt_headers: | HTTP/1.0 200 OK Cache-Control: no-cache Connection: close - Content-Type: text/html + Content-Type: text/plain; charset=utf-8 haproxy_security_txt_content: '' # haproxy_security_txt_content: |