Skip to content

Commit 7b34f1e

Browse files
committed
bug fix
Signed-off-by: Rony Xavier <rx294@nyu.edu>
1 parent 547a5d2 commit 7b34f1e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

controls/V-13738.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,12 @@
6767
nginx_conf_handle = nginx_conf(NGINX_CONF_FILE)
6868

6969
nginx_conf_handle.http.entries.each do |http|
70+
describe http.params['client_header_buffer_size'] do
71+
it { should_not be_nil}
72+
end
7073
describe http.params['client_header_buffer_size'].join.to_i do
7174
it { should cmp <= '1k'.to_i }
72-
end
75+
end unless http.params['client_header_buffer_size'].nil?
7376
end
7477

7578
nginx_conf_handle.servers.entries.each do |server|

controls/V-26396.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
its(['_']) { should cmp ["($request_method", "!~", "^(GET|PUT|POST)$", ")"]}
8686
its(['return']) { should cmp [["444"]]}
8787
end
88-
end
88+
end unless location.params['if'].nil?
8989
end
9090
end
9191
rescue Exception => msg

0 commit comments

Comments
 (0)