diff --git a/lib/Test/Nginx/Util.pm b/lib/Test/Nginx/Util.pm index 085083a0..29705b26 100644 --- a/lib/Test/Nginx/Util.pm +++ b/lib/Test/Nginx/Util.pm @@ -906,7 +906,7 @@ sub write_config_file ($$) { if ($LoadModules) { my @modules = map { "load_module $_;" } grep { $_ } split /\s+/, $LoadModules; if (@modules) { - $main_config .= join " ", @modules; + $main_config = join " ", @modules, $main_config; } }