diff --git a/tests/http2-server.pl b/tests/http2-server.pl index a537905dfb..553f1e922d 100755 --- a/tests/http2-server.pl +++ b/tests/http2-server.pl @@ -23,6 +23,9 @@ # #*************************************************************************** +use strict; +use warnings 'FATAL' => 'all'; + # This script invokes nghttpx properly to have it serve HTTP/2 for us. # nghttpx runs as a proxy in front of our "actual" HTTP/1 server. use Cwd; @@ -30,9 +33,6 @@ use Cwd 'abs_path'; use File::Basename; use File::Spec; -use strict; -use warnings 'FATAL' => 'all'; - my $logdir = "log"; my $pidfile = "$logdir/nghttpx.pid"; my $logfile = "$logdir/http2.log"; diff --git a/tests/http3-server.pl b/tests/http3-server.pl index 066680fc06..611d07a88c 100755 --- a/tests/http3-server.pl +++ b/tests/http3-server.pl @@ -23,6 +23,9 @@ # #*************************************************************************** +use strict; +use warnings 'FATAL' => 'all'; + # This script invokes nghttpx properly to have it serve HTTP/3 for us. # nghttpx runs as a proxy in front of our "actual" HTTP/1 server. @@ -31,9 +34,6 @@ use Cwd 'abs_path'; use File::Basename; use File::Spec; -use strict; -use warnings 'FATAL' => 'all'; - my $logdir = "log"; my $pidfile = "$logdir/nghttpx.pid"; my $logfile = "$logdir/http3.log";