Skip to content

Commit

Permalink
Merge pull request #5660 from hypothesis/fix-robots-txt-in-Python-3
Browse files Browse the repository at this point in the history
Fix crashing /robots.txt page
  • Loading branch information
robertknight authored Jul 17, 2019
2 parents 78597cc + d25f7ca commit 5f22a00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion h/views/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def annotation_page(context, request):
@view_config(route_name="robots", http_cache=(86400, {"public": True}))
def robots(context, request):
return response.FileResponse(
"h/static/robots.txt", request=request, content_type=b"text/plain"
"h/static/robots.txt", request=request, content_type="text/plain"
)


Expand Down

0 comments on commit 5f22a00

Please sign in to comment.