Return NotFound response for "/favicon.ico" request instead of returning wrong plain text response.
This commit is contained in:
@@ -26,8 +26,12 @@ feature -- Basic operations
|
|||||||
do
|
do
|
||||||
-- To send a response we need to setup, the status code and
|
-- To send a response we need to setup, the status code and
|
||||||
-- the response headers.
|
-- the response headers.
|
||||||
|
if request.path_info.same_string_general ("/favicon.ico") then
|
||||||
|
response.put_header ({HTTP_STATUS_CODE}.not_found, <<["Content-Length", "0"]>>)
|
||||||
|
else
|
||||||
if request.path_info.same_string_general ("/app") then
|
if request.path_info.same_string_general ("/app") then
|
||||||
s := websocket_app_html (request.server_name, request.server_port)
|
s := websocket_app_html (request.server_name, request.server_port)
|
||||||
|
|
||||||
else
|
else
|
||||||
s := "Hello World!"
|
s := "Hello World!"
|
||||||
create dt.make_now_utc
|
create dt.make_now_utc
|
||||||
@@ -43,6 +47,7 @@ feature -- Basic operations
|
|||||||
end
|
end
|
||||||
response.put_string (s)
|
response.put_string (s)
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
feature -- Websocket execution
|
feature -- Websocket execution
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user