diff --git a/Server/install.nsi b/Server/install.nsi index f361faa..b0a60cf 100644 --- a/Server/install.nsi +++ b/Server/install.nsi @@ -12,6 +12,7 @@ UninstPage instfiles Section CreateDirectory "$INSTDIR\etc" CreateDirectory "$INSTDIR\www" + CreateDirectory "$INSTDIR\www\icons" CreateDirectory "$INSTDIR\bin" SetOutPath "$INSTDIR\bin" File "tewi.exe" @@ -19,6 +20,8 @@ Section File /oname=tewi.conf.default "../example-win.conf" SetOutPath "$INSTDIR\www" File /oname=index.html "../itworks.html" + SetOutPath "$INSTDIR\www\icons" + File "../Icons/*.png" CreateDirectory "$SMPROGRAMS\Tewi HTTPd" CreateShortcut "$SMPROGRAMS\Tewi HTTPd\Start Tewi HTTPd.lnk" "$INSTDIR\bin\tewi.exe" "" diff --git a/Server/server.c b/Server/server.c index 9140faf..7fa31c4 100644 --- a/Server/server.c +++ b/Server/server.c @@ -620,8 +620,8 @@ void tw_server_pass(int sock, bool ssl, int port, SOCKADDR addr) { addstring(&str, "\n"); addstring(&str, " \"icon\"\n", icon); addstring(&str, " %h\n", items[i], itm); - addstring(&str, "   %h  \n", showmime); - addstring(&str, "   %s  \n", size); + addstring(&str, " %h \n", showmime); + addstring(&str, " %s \n", size); addstring(&str, "\n"); free(itm); }