Skip to content

Commit

Permalink
we should be applying body wrap in all cases, not just one
Browse files Browse the repository at this point in the history
  • Loading branch information
rob7hunter committed Dec 18, 2008
1 parent 0ab98a9 commit 81da4f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions page.scm
Expand Up @@ -80,7 +80,7 @@
(if (not redirect-to)
(e "Unless you are doing a #:redirect-to, a body is required.")
#f)
(last body))))
(body-wrap (last body)))))
(cond (redirect-to (response-promise-to-redirect redirect-to))
((response/full? returned-body) returned-body)
((response-promise? returned-body) returned-body)
Expand All @@ -97,7 +97,7 @@
,@(map js-inc js)
,@(map raw-str raw-header)
(title ,title))
(body ,body-attrs ,(body-wrap returned-body)))))
(body ,body-attrs ,returned-body))))
(if doc-type
`(group ,(raw-str doc-type) ,main)
main))))))
Expand Down

0 comments on commit 81da4f9

Please sign in to comment.