Permalink
Browse files

Fix crash in default text/html renderer

  • Loading branch information...
1 parent 650c486 commit ab8f4810dcfacf42414ca4ffde1bff9fb2e3fe24 @grncdr grncdr committed Jul 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/render.coffee
View
@@ -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>"

0 comments on commit ab8f481

Please sign in to comment.