diff --git a/lib/rack/pact_broker/convert_file_extension_to_accept_header.rb b/lib/rack/pact_broker/convert_file_extension_to_accept_header.rb index cde98d938..c6a34ea62 100644 --- a/lib/rack/pact_broker/convert_file_extension_to_accept_header.rb +++ b/lib/rack/pact_broker/convert_file_extension_to_accept_header.rb @@ -7,7 +7,7 @@ module PactBroker class ConvertFileExtensionToAcceptHeader - EXTENSIONS = {".csv" => "text/csv", ".svg" => "image/svg+xml"} + EXTENSIONS = {".csv" => "text/csv", ".svg" => "image/svg+xml", ".json" => "application/hal+json"} EXTENSION_REGEXP = /\.\w+$/ def initialize app