From: Javyer Der Derian Date: Thu, 17 Apr 2014 21:55:43 +0000 (-0300) Subject: Merge pull request #65 from geraldcombs/patch-1 X-Git-Tag: live~26 X-Git-Url: https://git.openstreetmap.org./osqa.git/commitdiff_plain/59dffb0a68d8b284e3e0111b78f6e35d81fdf4c1?hp=1003e4c1d2842b351ea3e168d8ac6c20d83ba442 Merge pull request #65 from geraldcombs/patch-1 Serve up robots.txt as plain text. --- 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')), )