public static bool send_file(Websvc w, string fname, bool attached) { SimpleStream ss = new SimpleStream(); ss.open(fname, true, false, out string _); return(WebFile.send_file(w, ss, fname, attached, true)); }
public override bool do_headers(Websvc w) { string fname = "." + w.url; if (fname == "./favicon.ico") { fname = "img/favicon.ico"; } return(WebFile.send_file(w, clib.app(fname), false)); }