Skip to content

Commit

Permalink
Corrected text on unexpected headers
Browse files Browse the repository at this point in the history
  • Loading branch information
AvnerCohen committed Aug 25, 2020
1 parent ce2b2b1 commit 97bb810
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
/spec/reports/
/tmp/

headers-rules-*.*
# rspec failure tracking
.rspec_status
*.gem
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
http-headers-verifier (0.0.8)
http-headers-verifier (0.0.9)
typhoeus (~> 1.4)

GEM
Expand Down
2 changes: 1 addition & 1 deletion lib/http_headers_validations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def self.assert_extra_header(actual_header, actual_value, ignored_headers, avoid
else
icon = "⚠️"
failed = false
text = "Warning: Extra Header '#{HttpHeadersUtils.bold(actual_header)}' with value '#{actual_value}' wasn't unexpected."
text = "Warning: Extra Header '#{HttpHeadersUtils.bold(actual_header)}' with value '#{actual_value}' was unexpected."
end

report(text, failed, icon)
Expand Down
4 changes: 2 additions & 2 deletions lib/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module HttpHeadersVerifier
VERSION = "0.0.8"
end
VERSION = "0.0.9"
end

0 comments on commit 97bb810

Please sign in to comment.