Skip to content

Commit 2aa533d

Browse files
committed
feat: add .css and .js file extensions to middleware that sets the accept header
1 parent a919ec2 commit 2aa533d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/rack/pact_broker/convert_file_extension_to_accept_header.rb

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ class ConvertFileExtensionToAcceptHeader
1111
".csv" => "text/csv",
1212
".svg" => "image/svg+xml",
1313
".json" => "application/hal+json",
14-
".yaml" => "application/yaml"
14+
".yaml" => "application/yaml",
15+
".css" => "text/css",
16+
".js" => "text/javascript"
1517
}
1618

1719
def initialize app

0 commit comments

Comments
 (0)