From 40ce106e113c3825a3423534f53c04c99cfa3087 Mon Sep 17 00:00:00 2001 From: Michael Andreen Date: Mon, 23 Jun 2008 20:48:46 +0200 Subject: [PATCH] preloading cgi is only needed in built-in server so move to that script --- lib/NDWeb.pm | 4 ---- script/ndweb_server.pl | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/NDWeb.pm b/lib/NDWeb.pm index 7507a2f..bf88819 100644 --- a/lib/NDWeb.pm +++ b/lib/NDWeb.pm @@ -5,10 +5,6 @@ use warnings; use Catalyst::Runtime '5.70'; -#Need to preload, otherwise the first hit is slow -use CGI qw/:standard/; -escapeHTML(''); - # Set flags and add plugins for the application # # -Debug: activates the debug mode for very useful log messages diff --git a/script/ndweb_server.pl b/script/ndweb_server.pl index 2a50e5e..fbd4872 100755 --- a/script/ndweb_server.pl +++ b/script/ndweb_server.pl @@ -13,6 +13,10 @@ use Pod::Usage; use FindBin; use lib "$FindBin::Bin/../lib"; +#Need to preload, otherwise the first hit is slow +use CGI qw/:standard/; +escapeHTML(''); + my $debug = 0; my $fork = 0; my $help = 0; -- 2.39.2