Browse Source

skip initial slashes

master
Felix von Leitner 17 years ago
parent
commit
73bfb8efe8
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      test/httpd.c

+ 1
- 0
test/httpd.c View File

@@ -144,6 +144,7 @@ e400:
if (*d!=' ') goto e400;
*d=0;
if (c[0]!='/') goto e404;
while (c[1]=='/') ++c;
if (!io_readfile(&fd,c+1)) {
e404:
httperror(h,"404 Not Found","No such file or directory.");


Loading…
Cancel
Save