From eb1cd323c0cb42cc0fbb45d3d3fdc4056b72a2a1 Mon Sep 17 00:00:00 2001 From: Beth Skurrie Date: Mon, 25 Mar 2019 20:34:14 +1100 Subject: [PATCH] feat: add .css and .js file extensions to middleware that sets the accept header --- .../pact_broker/convert_file_extension_to_accept_header.rb | 4 +++- 1 file changed, 3 insertions(+), 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 f2f4b1585..f47a3d373 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,9 @@ class ConvertFileExtensionToAcceptHeader ".csv" => "text/csv", ".svg" => "image/svg+xml", ".json" => "application/hal+json", - ".yaml" => "application/yaml" + ".yaml" => "application/yaml", + ".css" => "text/css", + ".js" => "text/javascript" } def initialize app