Sha256: 9fbbb454d7b9e88b62e7f88ead58ca56d08f2f6b8aaabce2d6525b47739c4fd4

Contents?: true

Size: 366 Bytes

Versions: 5

Compression:

Stored size: 366 Bytes

Contents

# rubocop:disable all
# NOTE: This code has been in oauth2 master since 2018 but is awaiting a 2.0 release of oauth2
OAuth2::Response.register_parser(:json, ['application/json', 'text/javascript', 'application/hal+json', 'application/vnd.collection+json', 'application/vnd.api+json']) do |body|
  MultiJson.load(body) rescue body # rubocop:disable RescueModifier
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
aptible-auth-1.2.5 lib/oauth2/response_parser.rb
aptible-auth-1.2.4 lib/oauth2/response_parser.rb
aptible-auth-1.2.3 lib/oauth2/response_parser.rb
aptible-auth-1.2.2 lib/oauth2/response_parser.rb
aptible-auth-1.2.1 lib/oauth2/response_parser.rb