Commented the execute_bad_request, since it is not ready and will trigger error most of the time.
This commit is contained in:
@@ -349,30 +349,31 @@ feature -- Request processing
|
|||||||
has_error: has_error
|
has_error: has_error
|
||||||
a_socket_attached: a_socket /= Void
|
a_socket_attached: a_socket /= Void
|
||||||
local
|
local
|
||||||
h: STRING
|
-- h: STRING
|
||||||
s: STRING
|
-- s: STRING
|
||||||
do
|
do
|
||||||
-- NOTE: this is experiment code, and not ready yet.
|
-- NOTE: this is experiment code, and not ready yet.
|
||||||
if a_socket.is_connected and then a_socket.ready_for_writing then
|
|
||||||
s := "{
|
-- if a_socket.ready_for_writing then
|
||||||
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
|
-- s := "{
|
||||||
<html><head>
|
--<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
|
||||||
<title>400 Bad Request</title>
|
--<html><head>
|
||||||
</head><body>
|
--<title>400 Bad Request</title>
|
||||||
<h1>Bad Request</h1>
|
--</head><body>
|
||||||
</body></html>
|
--<h1>Bad Request</h1>
|
||||||
}"
|
--</body></html>
|
||||||
create h.make (1_024)
|
-- }"
|
||||||
h.append ("HTTP/1.1 400 Bad Request%R%N")
|
-- create h.make (1_024)
|
||||||
h.append ("Content-Length: " + s.count.out + "%R%N")
|
-- h.append ("HTTP/1.1 400 Bad Request%R%N")
|
||||||
h.append ("Connection: close%R%N")
|
-- h.append ("Content-Length: " + s.count.out + "%R%N")
|
||||||
h.append ("Content-Type: text/html; charset=iso-8859-1%R%N")
|
-- h.append ("Connection: close%R%N")
|
||||||
h.append ("%R%N")
|
-- h.append ("Content-Type: text/html; charset=iso-8859-1%R%N")
|
||||||
a_socket.put_string (h)
|
-- h.append ("%R%N")
|
||||||
if a_socket.is_connected and then a_socket.ready_for_writing then
|
-- a_socket.put_string (h)
|
||||||
a_socket.put_string (s)
|
-- if a_socket.ready_for_writing then
|
||||||
end
|
-- a_socket.put_string (s)
|
||||||
end
|
-- end
|
||||||
|
-- end
|
||||||
end
|
end
|
||||||
|
|
||||||
feature -- Parsing
|
feature -- Parsing
|
||||||
|
|||||||
Reference in New Issue
Block a user