Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

captivePortal bug #269

Open
telesyst opened this issue Nov 20, 2023 · 0 comments
Open

captivePortal bug #269

telesyst opened this issue Nov 20, 2023 · 0 comments

Comments

@telesyst
Copy link

telesyst commented Nov 20, 2023

Describe the bug
if captivePortal == true
The connection from the Windows computer results in unstable work of device. Teted by tabbedGui.ino

I found the solution to the problem. It might not be the best.

    if (captivePortal)
    {
        request->redirect("/");
    }
    else
    {
        request->send(404);
    }

ESPUI.cpp rows 1270 and 1426

must be

    if (captivePortal && (strcmp(request->contentType().c_str(), "") == 0 ))
    {
	    request->redirect("/");
    }
    else
    {
        request->send(404);
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant