email: Drop X-Robots-Tag on the auto-configuration URL

Seems unnecessary. Nothing to followup on.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa 2022-01-28 18:54:04 -08:00 committed by James Valleroy
parent 32737a16ed
commit 2c044db25c
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -129,9 +129,7 @@ class XmlView(TemplateView):
def render_to_response(self, *args, **kwargs):
kwargs['content_type'] = 'text/xml; charset=utf-8'
response = super().render_to_response(*args, **kwargs)
response['X-Robots-Tag'] = 'noindex, nofollow, noarchive'
return response
return super().render_to_response(*args, **kwargs)
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)