Skip to content

Commit

Permalink
Ensure the request entity verb is always downcased
Browse files Browse the repository at this point in the history
Signed-off-by: Vanessa Fotso <[email protected]>
  • Loading branch information
vanessuniq committed Oct 29, 2024
1 parent 39042af commit 9ada64a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/inferno/entities/request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def from_http_response(response, test_session_id:, direction: 'outgoing', name:
.map { |header_name, value| Header.new(name: header_name.downcase, value:, type: 'response') }

new(
verb: response.env.method,
verb: response.env.method.downcase,
url: response.env.url.to_s,
direction:,
name:,
Expand Down Expand Up @@ -210,7 +210,7 @@ def from_fhir_client_reply(reply, test_session_id:, direction: 'outgoing', name:
end

new(
verb: request[:method],
verb: request[:method].downcase,
url: request[:url],
direction:,
name:,
Expand Down

0 comments on commit 9ada64a

Please sign in to comment.