regex to check nginx does not provide version
This commit is contained in:
parent
54f471e31b
commit
ab5001559e
|
|
@ -120,7 +120,7 @@ describe 'passbolt_api service' do
|
|||
end
|
||||
|
||||
it 'hides nginx version' do
|
||||
expect(command("#{curl} | grep 'Server:'").stdout).to match 'Server: nginx'
|
||||
expect(command("#{curl} | grep 'Server:'").stdout).to match /^Server: nginx$/
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue