Skip to content
This repository has been archived by the owner on Feb 19, 2022. It is now read-only.

Commit

Permalink
Fix crash in default text/html renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
grncdr committed Jul 24, 2012
1 parent 650c486 commit ab8f481
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/render.coffee
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
exports['text/html'] = (req, res, next) ->
res.setHeader 'Content-Type', 'text/html'
title = req.route.shortName || 'Un-named route'
title = req.resource.shortName || 'Un-named route'
res.write "<html><head><title>#{title}</title></head><body>"
writeHtml res, res.data
res.end "</body></html>"
Expand Down

0 comments on commit ab8f481

Please sign in to comment.