From 067d6ac7b907ef3350ce289dde6071edf0b38ac4 Mon Sep 17 00:00:00 2001 From: Beth Skurrie Date: Fri, 14 Sep 2018 08:09:22 +1000 Subject: [PATCH] feat: use application/yaml instead of application/x-yaml to match Swaggerhub --- lib/rack/pact_broker/convert_file_extension_to_accept_header.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 37defd090..f2f4b1585 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 @@ -11,7 +11,7 @@ class ConvertFileExtensionToAcceptHeader ".csv" => "text/csv", ".svg" => "image/svg+xml", ".json" => "application/hal+json", - ".yaml" => "application/x-yaml" + ".yaml" => "application/yaml" } def initialize app