specify charset on api response

pull/2224/head
Jens Ulferts 10 years ago
parent 6e8b15337d
commit aaf92ed396
  1. 4
      lib/api/root.rb

@ -41,8 +41,8 @@ module API
end
end
content_type 'hal+json', 'application/hal+json'
content_type :json, 'application/json'
content_type 'hal+json', 'application/hal+json; charset=utf-8'
content_type :json, 'application/json; charset=utf-8'
format 'hal+json'
formatter 'hal+json', Formatter.new

Loading…
Cancel
Save