From bbad7733fe621341377ede3f6bce02baa78a5727 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Sat, 12 Dec 2020 20:04:05 +0200 Subject: [PATCH] UTF-8 for robots.txt. --- snippets/robots-allow-all.conf | 2 +- snippets/robots-disallow-all.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/snippets/robots-allow-all.conf b/snippets/robots-allow-all.conf index bff79a7..627aee5 100644 --- a/snippets/robots-allow-all.conf +++ b/snippets/robots-allow-all.conf @@ -1,4 +1,4 @@ location = /robots.txt { - add_header Content-Type text/plain; + add_header Content-Type "text/plain; charset=utf-8"; return 200 "User-agent: *\nDisallow:\n"; } diff --git a/snippets/robots-disallow-all.conf b/snippets/robots-disallow-all.conf index d5c0265..03d5031 100644 --- a/snippets/robots-disallow-all.conf +++ b/snippets/robots-disallow-all.conf @@ -1,4 +1,4 @@ location = /robots.txt { - add_header Content-Type text/plain; + add_header Content-Type "text/plain; charset=utf-8"; return 200 "User-agent: *\nDisallow: *\n"; } -- GitLab