]> ruin.nu Git - ndwebbie.git/commitdiff
preloading cgi is only needed in built-in server so move to that script
authorMichael Andreen <harv@ruin.nu>
Mon, 23 Jun 2008 18:48:46 +0000 (20:48 +0200)
committerMichael Andreen <harv@ruin.nu>
Tue, 24 Jun 2008 23:17:04 +0000 (01:17 +0200)
lib/NDWeb.pm
script/ndweb_server.pl

index 7507a2fd568cc8343a105c36460bca298fad3821..bf888193665579a3e4a7727afdcb81315c17eb40 100644 (file)
@@ -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
index 2a50e5e770729395af821946a2954a2a85df41c0..fbd487270c9943ed1d5bc34615c9eb79c5954062 100755 (executable)
@@ -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;