Have redbean show zip listing as default / handler
If an "index.lua" or "index.html" doesn't exist in zip file or the filesystem, and no redirects have been defined for it either, then redbean will render a listing of the zip central directory content only if the request uri points to the root path.
This commit is contained in:
1
third_party/lua/llex.c
vendored
1
third_party/lua/llex.c
vendored
@ -389,6 +389,7 @@ static void read_string (LexState *ls, int del, SemInfo *seminfo) {
|
||||
int c; /* final character to be saved */
|
||||
save_and_next(ls); /* keep '\\' for error messages */
|
||||
switch (ls->current) {
|
||||
case 'e': c = '\e'; goto read_save;
|
||||
case 'a': c = '\a'; goto read_save;
|
||||
case 'b': c = '\b'; goto read_save;
|
||||
case 'f': c = '\f'; goto read_save;
|
||||
|
||||
Reference in New Issue
Block a user