Add special handeling for favicon

pull/13/head
TilCreator 2018-05-29 15:37:40 +02:00
rodzic e4a3c8fac5
commit 7f6e249eb0
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -239,7 +239,10 @@ def handle_configure(client, request):
def handle_not_found(client, url):
send_header(client, status_code=307, redirect='/')
if 'favicon' in url:
send_header(client, status_code=404)
else:
send_header(client, status_code=307, redirect='/')
client.close()