Mercurial > SimpleWebPresenter
diff Sitemap.inc @ 86:b9654b9c4a66
Make headers a part of the content, rather than setting them directly.
| author | Tom Fredrik "BFG" Klaussen <bfg@blenning.no> |
|---|---|
| date | Mon, 15 Oct 2012 18:32:56 +0200 |
| parents | 7c68015b211a |
| children | 1d4c980f4255 |
line wrap: on
line diff
--- a/Sitemap.inc Mon Oct 15 16:53:29 2012 +0200 +++ b/Sitemap.inc Mon Oct 15 18:32:56 2012 +0200 @@ -103,8 +103,9 @@ $out .= '</urlset>'; - header('Content-type: application/xml'); - return $out; + $res = new PageContent($out); + $res->addHeader('Content-type: application/xml'); + return $res; } } ?>
