Add html body

This commit is contained in:
YNH Webdev
2013-08-27 16:44:58 +02:00
parent c29a6ad195
commit 0c0fb5c9c8

View File

@@ -61,8 +61,10 @@ feature
data: STRING
do
data := control.render
response.put_header ({HTTP_STATUS_CODE}.ok, <<["Content-Type", "text/plain"], ["Content-Length", data.count.out]>>)
response.put_header ({HTTP_STATUS_CODE}.ok, <<["Content-Type", "text/html"], ["Content-Length", data.count.out]>>)
response.put_string ("<html><head></head><body>")
response.put_string (data)
response.put_string ("</body></html>")
end
get_parameter (key: STRING): detachable STRING