Skip to content

Commit

Permalink
feat: convert paths ending in .json to Accept: application/hal+json
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Oct 7, 2017
1 parent 36f9480 commit d81f129
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d81f129

Please sign in to comment.