Skip to content

Commit

Permalink
Debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Cawllec committed Sep 9, 2024
1 parent 5c9f259 commit 8380bce
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions features/support/env.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@

Maze.config.add_validator('error') do |validator|
pp validator.headers
validator.validate_header('Bugsnag-Api-Key') { |value| value.eql?($api_key) }
validator.validate_header('Content-Type') { |value| value.eql?('application/json') }
validator.validate_header('Bugsnag-Payload-Version') { |value| value.eql?('4') }
validator.validate_header('Bugsnag-Sent-At') do |value|
validator.validate_header('bugsnag-api-key') { |value| value.eql?($api_key) }
validator.validate_header('content-type') { |value| value.eql?('application/json') }
validator.validate_header('bugsnag-payload-version') { |value| value.eql?('4') }
validator.validate_header('bugsnag-sent-at') do |value|
begin
Date.iso8601(value)
rescue Date::Error
Expand Down Expand Up @@ -54,10 +54,10 @@
end

Maze.config.add_validator('session') do |validator|
validator.validate_header('Bugsnag-Api-Key') { |value| value.eql?($api_key) }
validator.validate_header('Content-Type') { |value| value.eql?('application/json') }
validator.validate_header('Bugsnag-Payload-Version') { |value| value.eql?('1.0') }
validator.validate_header('Bugsnag-Sent-At') do |value|
validator.validate_header('bugsnag-api-key') { |value| value.eql?($api_key) }
validator.validate_header('content-type') { |value| value.eql?('application/json') }
validator.validate_header('bugsnag-payload-version') { |value| value.eql?('1.0') }
validator.validate_header('bugsnag-sent-at') do |value|
begin
Date.iso8601(value)
rescue Date::Error
Expand Down

0 comments on commit 8380bce

Please sign in to comment.