Skip to content

Commit

Permalink
use better name fro web template files
Browse files Browse the repository at this point in the history
  • Loading branch information
brainelectronics committed Feb 14, 2022
1 parent 345011e commit 642c351
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
File renamed without changes.
File renamed without changes.
6 changes: 5 additions & 1 deletion wifi_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,11 @@ def remove_wifi_config(self, req, resp) -> None:
if PathHelper.exists(path=self._config_file):
os.remove(self._config_file)
self.logger.debug('Removed network file')
return
# redirect to '/'
headers = {'Location': '/'}
yield from picoweb.start_response(resp,
status='303',
headers=headers)

loaded_cfg = self._load_wifi_config_data(path=self._config_file,
encrypted=True)
Expand Down

0 comments on commit 642c351

Please sign in to comment.