summaryrefslogtreecommitdiffstats
path: root/lib/public/AppFramework/Http/Response.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-06-15 13:50:30 +0200
committerJoas Schilling <coding@schilljs.com>2020-06-25 08:29:43 +0200
commitb7060be18ddc8e48d65c5909338662df5b0ec9bb (patch)
tree8538a32f626e13d745478a2a559664a1505e642c /lib/public/AppFramework/Http/Response.php
parenta29c866292178528b92fdca1171e61e3912d766a (diff)
downloadnextcloud-server-b7060be18ddc8e48d65c5909338662df5b0ec9bb.tar.gz
nextcloud-server-b7060be18ddc8e48d65c5909338662df5b0ec9bb.zip
Fix robots "noindex, nofollow" signals
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/public/AppFramework/Http/Response.php')
-rw-r--r--lib/public/AppFramework/Http/Response.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/public/AppFramework/Http/Response.php b/lib/public/AppFramework/Http/Response.php
index 832e0b96247..c26ea4ce400 100644
--- a/lib/public/AppFramework/Http/Response.php
+++ b/lib/public/AppFramework/Http/Response.php
@@ -239,6 +239,7 @@ class Response {
$this->headers['Content-Security-Policy'] = $this->getContentSecurityPolicy()->buildPolicy();
$this->headers['Feature-Policy'] = $this->getFeaturePolicy()->buildPolicy();
+ $this->headers['X-Robots-Tag'] = 'none';
if ($this->ETag) {
$mergeWith['ETag'] = '"' . $this->ETag . '"';