Browse Source

skip initial slashes

master
Felix von Leitner 19 years ago
parent
commit
73bfb8efe8
  1. 1
      test/httpd.c

1
test/httpd.c

@ -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