lib/acme/client/resources/authorization.rb in acme-client-2.0.16 vs lib/acme/client/resources/authorization.rb in acme-client-2.0.17

- old
+ new

@@ -54,10 +54,10 @@ def initialize_challenge(attributes) arguments = { type: attributes.fetch('type'), status: attributes.fetch('status'), url: attributes.fetch('url'), - token: attributes.fetch('token'), + token: attributes.fetch('token', nil), error: attributes['error'] } Acme::Client::Resources::Challenges.new(@client, **arguments) end