lib/roda/plugins/json.rb in roda-3.69.0 vs lib/roda/plugins/json.rb in roda-3.70.0
- old
+ new
@@ -84,10 +84,10 @@
module InstanceMethods
# Handle a result for one of the registered JSON result classes
# by converting the result to JSON.
def handle_json_block_result(result)
- @_response['Content-Type'] ||= opts[:json_result_content_type]
+ @_response[RodaResponseHeaders::CONTENT_TYPE] ||= opts[:json_result_content_type]
@_request.send(:convert_to_json, result)
end
end
module RequestMethods