Fix wrong authentication failed management for files served on flash

This commit is contained in:
Luc 2020-10-07 10:56:06 +02:00
parent 08b80c66c7
commit f3f44786c0
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@
#define _VERSION_ESP3D_H
//version and sources location
#define FW_VERSION "3.0.0.a60"
#define FW_VERSION "3.0.0.a61"
#define REPOSITORY "https://github.com/luc-github/ESP3D/tree/3.0"
#endif //_VERSION_ESP3D_H

View File

@ -36,7 +36,7 @@
void HTTP_Server:: handle_not_found()
{
if (AuthenticationService::authenticated_level() == LEVEL_GUEST) {
_webserver->sendContent("HTTP/1.1 301 OK\r\nLocation: /\r\nCache-Control: no-cache\r\n\r\n");
_webserver->send (401, "text/plain", "Wrong authentication!");
return;
}
String path = _webserver->urlDecode(_webserver->uri());