Skip to content

Commit d81f129

Browse files
committed
feat: convert paths ending in .json to Accept: application/hal+json
1 parent 36f9480 commit d81f129

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rack/pact_broker/convert_file_extension_to_accept_header.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module PactBroker
77

88
class ConvertFileExtensionToAcceptHeader
99

10-
EXTENSIONS = {".csv" => "text/csv", ".svg" => "image/svg+xml"}
10+
EXTENSIONS = {".csv" => "text/csv", ".svg" => "image/svg+xml", ".json" => "application/hal+json"}
1111
EXTENSION_REGEXP = /\.\w+$/
1212

1313
def initialize app

0 commit comments

Comments
 (0)