Skip to content

Commit

Permalink
fixup! Put load_module directives before the stream block
Browse files Browse the repository at this point in the history
  • Loading branch information
choroba committed Nov 5, 2018
1 parent 0b7379c commit 8fed0e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Test/Nginx/Util.pm
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,7 @@ sub write_config_file ($$) {
if ($LoadModules) {
my @modules = map { "load_module $_;" } grep { $_ } split /\s+/, $LoadModules;
if (@modules) {
substr $main_config, 0, 0, join " ", @modules;
$main_config = join " ", $main_config, @modules;
}
}

Expand Down

0 comments on commit 8fed0e9

Please sign in to comment.