Don't forget to put Content-Length: 0 for redirect without any content

This commit is contained in:
Jocelyn Fiat
2012-01-17 17:37:26 +01:00
parent 4486df14cc
commit 4cf3393a13

View File

@@ -242,6 +242,7 @@ feature -- Redirect
else else
create h.make_with_count (1) create h.make_with_count (1)
h.put_location (a_url) h.put_location (a_url)
h.put_content_length (0)
set_status_code (a_status_code) set_status_code (a_status_code)
put_header_text (h.string) put_header_text (h.string)
end end