From ed22be25510beb57a3632a692313dce7a7a79dc1 Mon Sep 17 00:00:00 2001 From: Jocelyn Fiat Date: Wed, 5 Oct 2016 00:04:21 +0200 Subject: [PATCH] Commented the execute_bad_request, since it is not ready and will trigger error most of the time. --- .../lib/httpd/httpd_request_handler_i.e | 45 ++++++++++--------- 1 file changed, 23 insertions(+), 22 deletions(-) diff --git a/library/server/ewsgi/connectors/standalone/lib/httpd/httpd_request_handler_i.e b/library/server/ewsgi/connectors/standalone/lib/httpd/httpd_request_handler_i.e index 38481237..43ddd952 100644 --- a/library/server/ewsgi/connectors/standalone/lib/httpd/httpd_request_handler_i.e +++ b/library/server/ewsgi/connectors/standalone/lib/httpd/httpd_request_handler_i.e @@ -349,30 +349,31 @@ feature -- Request processing has_error: has_error a_socket_attached: a_socket /= Void local - h: STRING - s: STRING +-- h: STRING +-- s: STRING do -- NOTE: this is experiment code, and not ready yet. - if a_socket.is_connected and then a_socket.ready_for_writing then - s := "{ - - -400 Bad Request - -

Bad Request

- - }" - create h.make (1_024) - h.append ("HTTP/1.1 400 Bad Request%R%N") - h.append ("Content-Length: " + s.count.out + "%R%N") - h.append ("Connection: close%R%N") - h.append ("Content-Type: text/html; charset=iso-8859-1%R%N") - h.append ("%R%N") - a_socket.put_string (h) - if a_socket.is_connected and then a_socket.ready_for_writing then - a_socket.put_string (s) - end - end + +-- if a_socket.ready_for_writing then +-- s := "{ +-- +-- +--400 Bad Request +-- +--

Bad Request

+-- +-- }" +-- create h.make (1_024) +-- h.append ("HTTP/1.1 400 Bad Request%R%N") +-- h.append ("Content-Length: " + s.count.out + "%R%N") +-- h.append ("Connection: close%R%N") +-- h.append ("Content-Type: text/html; charset=iso-8859-1%R%N") +-- h.append ("%R%N") +-- a_socket.put_string (h) +-- if a_socket.ready_for_writing then +-- a_socket.put_string (s) +-- end +-- end end feature -- Parsing