mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-02-04 08:13:38 +00:00
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:
parent
32737a16ed
commit
2c044db25c
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user