]> git.openstreetmap.org Git - osqa.git/blobdiff - forum_modules/robotstxt/urls.py
Serve up robots.txt as plain text.
[osqa.git] / 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')),
 )