snprintf (FileBuf, SIZ, "%s%s", static_dirs[0], "/diskette_24x.gif");
else
snprintf (FileBuf, SIZ, "%s%s", static_dirs[3], FileName);
- //// TODO! output_static(FileBuf);
+ output_static(FileBuf);
}
void download_file(void)
int force_download = 1;
Buf = NewStrBuf();
- StrBufExtract_token(Buf, WCC->Hdr->ReqLine, 2, '/');
+ StrBufExtract_token(Buf, WCC->Hdr->ReqLine, 0, '/');
StrBufUnescape(Buf, 1);
serv_printf("OPEN %s", ChrPtr(Buf));
StrBuf_ServGetln(Buf);
* when there's no such image on the server.
*/
StrBufPrintf (Buf, "%s%s", static_dirs[0], "/blank.gif");
- //// TDODO output_static(ChrPtr(Buf));
+ output_static(ChrPtr(Buf));
FreeStrBuf(&Buf);
}