]> git.openstreetmap.org Git - osqa.git/commitdiff
Serve up robots.txt as plain text.
authorGerald Combs <gerald@wireshark.org>
Mon, 7 Apr 2014 22:27:09 +0000 (15:27 -0700)
committerGerald Combs <gerald@wireshark.org>
Mon, 7 Apr 2014 22:27:09 +0000 (15:27 -0700)
forum_modules/robotstxt/urls.py

index 5f74a0a62dd250268888945cf2614fb33f87415d..ddcac3bccdaa68444ab5f9adf5b9d74e4697ea01 100644 (file)
@@ -3,5 +3,5 @@ from django.http import  HttpResponse
 import settings
 
 urlpatterns = patterns('',
 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')),
 )
 )