From dca62877790867febcd047d0bf7a3ac431ff9c84 Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Mon, 7 Apr 2014 15:27:09 -0700 Subject: [PATCH 1/1] Serve up robots.txt as plain text. --- forum_modules/robotstxt/urls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forum_modules/robotstxt/urls.py b/forum_modules/robotstxt/urls.py index 5f74a0a..ddcac3b 100644 --- a/forum_modules/robotstxt/urls.py +++ b/forum_modules/robotstxt/urls.py @@ -3,5 +3,5 @@ from django.http import HttpResponse import settings urlpatterns = patterns('', - (r'^robots.txt$', lambda r: HttpResponse(settings.ROBOTS_FILE.value)), + (r'^robots.txt$', lambda r: HttpResponse(settings.ROBOTS_FILE.value, content_type='text/plain')), ) -- 2.39.5