mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-08-05 20:46:12 +08:00
Fix wrong authentication failed management for files served on flash
This commit is contained in:
parent
08b80c66c7
commit
f3f44786c0
@ -22,7 +22,7 @@
|
|||||||
#define _VERSION_ESP3D_H
|
#define _VERSION_ESP3D_H
|
||||||
|
|
||||||
//version and sources location
|
//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"
|
#define REPOSITORY "https://github.com/luc-github/ESP3D/tree/3.0"
|
||||||
|
|
||||||
#endif //_VERSION_ESP3D_H
|
#endif //_VERSION_ESP3D_H
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
void HTTP_Server:: handle_not_found()
|
void HTTP_Server:: handle_not_found()
|
||||||
{
|
{
|
||||||
if (AuthenticationService::authenticated_level() == LEVEL_GUEST) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
String path = _webserver->urlDecode(_webserver->uri());
|
String path = _webserver->urlDecode(_webserver->uri());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user