Closed GoogleCodeExporter closed 9 years ago
Maybe you could also just have some kind of map for both headers sent by the
browser, and headers to send to the client?
Original comment by roland.q...@gmail.com
on 7 Aug 2010 at 1:33
Attached is a perfect example of what I'm talking about. The sitemap.xml is
sending a text/html content type header (because of the code in renderPage()).
Need to be able to set the headers from the sitemap plugin (you also need to
fix the sitemap plugin to reflect that too).
Original comment by roland.q...@gmail.com
on 7 Aug 2010 at 1:40
Attachments:
[deleted comment]
If you need to read User-Agent header you can do it by:
1. Use $request.getHeader("User-Agent") variable in Velocity templates.
2. Use VosaoContext.getInstance().getRequest().getHeader("User-Agent") in Java
code.
If you need to change http response headers then I will add response to the
VosaoContext object. Will it suffice for your needs?
Original comment by kinyelo@gmail.com
on 7 Aug 2010 at 7:10
Implemented as VosaoContext response property and Velocity variable "response".
r867
Original comment by kinyelo@gmail.com
on 8 Aug 2010 at 6:30
Perfect! Thanks for that!
Original comment by roland.q...@gmail.com
on 8 Aug 2010 at 10:42
Original issue reported on code.google.com by
roland.q...@gmail.com
on 7 Aug 2010 at 1:31