fixed example .. where we forgot to set the status, and send the header

(DbC helped here)
This commit is contained in:
Jocelyn Fiat
2011-09-07 12:10:48 +02:00
parent eee085dd5a
commit 3c9fce293f

View File

@@ -60,6 +60,8 @@ feature -- Helper
i := i + 1 i := i + 1
end end
end end
res.set_status_code ({HTTP_STATUS_CODE}.unsupported_media_type)
res.write_headers_string (h.string)
if s /= Void then if s /= Void then
res.write_string ("Unsupported request content-type, Accept: " + s + "%N") res.write_string ("Unsupported request content-type, Accept: " + s + "%N")
end end