From ed3f1d315ba15839ffa02506cb3defcb502c300f Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Fri, 2 Aug 2019 10:15:18 +0000 Subject: [PATCH] vweb: remove favicon hack --- vlib/vweb/vweb.v | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/vlib/vweb/vweb.v b/vlib/vweb/vweb.v index 36257fd1f6..afdb53e218 100644 --- a/vlib/vweb/vweb.v +++ b/vlib/vweb/vweb.v @@ -120,15 +120,10 @@ pub fn run(port int) { first_line := s.all_before('\n') vals := first_line.split(' ') mut action := vals[1].right(1).all_before('/') + println('vweb.v: action="$action"') if action.contains('?') { action = action.all_before('?') } - if action == 'favicon.ico' { - println('favicon.ico') - conn.write('HTTP/1.1 404 Not Found') - conn.close() - continue - } if action == '' { action = 'index' } @@ -170,7 +165,7 @@ pub fn run(port int) { conn.write('HTTP/1.1 404 Not Found Content-Type: text/plain -404 not found +404 not found ') } conn.close()