]> git.openstreetmap.org Git - osqa.git/commitdiff
Merge pull request #65 from geraldcombs/patch-1
authorJavyer Der Derian <javier@tribalo.net>
Thu, 17 Apr 2014 21:55:43 +0000 (18:55 -0300)
committerJavyer Der Derian <javier@tribalo.net>
Thu, 17 Apr 2014 21:55:43 +0000 (18:55 -0300)
Serve up robots.txt as plain text.

forum_modules/robotstxt/urls.py

index 5f74a0a62dd250268888945cf2614fb33f87415d..ddcac3bccdaa68444ab5f9adf5b9d74e4697ea01 100644 (file)
@@ -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')),
 )