Skip to content

broken page (using setroot) #83

@StephaneTy-Pro

Description

@StephaneTy-Pro

Description

page load but was broken (corrupted)

Expected Behavior

page is correctly loaded

Reproduction Steps

No response

Error Logs

No response

Possible Solution

in _webui_http_send_file() replace

/*
    if (WEBUI_FILE_OPEN(file, path, "rb") != 0 || !file) {
        #ifdef WEBUI_LOG
        printf("[Core]\t\t_webui_http_send_file() -> Can't open file [%s]\n", path);
        #endif
        return;
    }
*/
	if (WEBUI_FILE_OPEN(file, path, "rb") == NULL) {
        #ifdef WEBUI_LOG
        printf("[Core]\t\t_webui_http_send_file() -> Can't open file [%s]\n", path);
        #endif
	}

Version

2.5.0-beta2

Environment Details (OS name, version, etc.)

linux 5.10.0-12

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions