Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def validate_get_request_params(path_params, query_params, headers, validator_op

def validate_post_request_params(path_params, query_params, body_params, headers, validator_option)
content_type_key = headers.keys.detect { |k| k.casecmp?('Content-Type') }
content_type = headers[content_type_key].to_s.split(';').first.to_s
content_type = Rack::MediaType.type(headers[content_type_key])

# bad performance because when we coerce value, same check
validate_path_and_query_params(path_params, query_params, headers, validator_option)
Expand Down