From 0283f4aaef854c625cf3b7a072bdbb682dc1d765 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Sun, 29 Mar 2020 18:32:41 -0400 Subject: cgi.d by Adam Ruppe used, license Boost --- src/doc_reform/io_out/cgi_sqlite_search_form.d | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/doc_reform/io_out/cgi_sqlite_search_form.d') diff --git a/src/doc_reform/io_out/cgi_sqlite_search_form.d b/src/doc_reform/io_out/cgi_sqlite_search_form.d index b1c64eb..a694042 100644 --- a/src/doc_reform/io_out/cgi_sqlite_search_form.d +++ b/src/doc_reform/io_out/cgi_sqlite_search_form.d @@ -984,5 +984,19 @@ configuration "default" { // Handle error } } + { // cgi.d + import std.net.curl, std.stdio; + try { + auto cgi_d = get("https://raw.githubusercontent.com/adamdruppe/arsd/master/cgi.d"); + try { + auto f = File(pth_sqlite_cgi.cgi_d_path_out, "w"); + f.write(cgi_d); + } catch (ErrnoException ex) { + // Handle error + } + } catch (ErrnoException ex) { + // Handle error + } + } } } -- cgit v1.2.3