Skip to content

Commit ae1e1b8

Browse files
committed
Add content_type to default response
1 parent bfa1d52 commit ae1e1b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readthedocs/core/views/serve.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -260,4 +260,4 @@ def robots_txt(request, project):
260260
if os.path.exists(fullpath):
261261
return HttpResponse(open(fullpath).read(), content_type='text/plain')
262262

263-
return HttpResponse('User-agent: *\nAllow: /\n')
263+
return HttpResponse('User-agent: *\nAllow: /\n', content_type='text/plain'))

0 commit comments

Comments
 (0)