Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix for symbolizing responses when yajl is loaded

  • Loading branch information...
commit 695471e6d5448b0182e413c66092bfba7c16ab81 1 parent 2433328
@krobertson krobertson authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/cloudfoundry/client/response.rb
View
2  lib/cloudfoundry/client/response.rb
@@ -12,7 +12,7 @@ class ParseJSON < Faraday::Response::Middleware
def parse(body)
case body
when " " then nil
- else JSON.parse(body, :symbolize_names => true)
+ else JSON.parse(body, :symbolize_names => true, :symbolize_keys => true)
end
rescue JSON::ParserError
raise CloudFoundry::Client::Exception::BadResponse, "Can't parse response into JSON:" + body
Please sign in to comment.
Something went wrong with that request. Please try again.