kopia lustrzana https://github.com/tayfunulu/WiFiManager
Add special handeling for favicon
rodzic
e4a3c8fac5
commit
7f6e249eb0
|
@ -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()
|
||||
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue