fixed example .. where we forgot to set the status, and send the header
(DbC helped here)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user