Changeset 61 in Main for trunk/Server/server.c


Ignore:
Timestamp:
Sep 18, 2024, 9:45:02 PM (2 months ago)
Author:
Nishi
Message:

add ServerRoot

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Server/server.c

    r60 r61  
    483483                                } else if(S_ISDIR(st.st_mode)) {
    484484                                        if(req.path[strlen(req.path) - 1] != '/') {
     485                                                cm_log("Server", "Accessing directory without the slash at the end");
    485486                                                char* headers[3] = {"Location", cm_strcat(req.path, "/"), NULL};
    486487                                                _tw_process_page(s, sock, tw_http_status(308), NULL, NULL, NULL, 0, headers, 0, 0);
Note: See TracChangeset for help on using the changeset viewer.