lib/unsplash/connection.rb in unsplash-1.3.1 vs lib/unsplash/connection.rb in unsplash-1.4.0

- old
+ new

@@ -91,11 +91,15 @@ refresh_token! param_key = verb == :post ? :body : :params @oauth_token.public_send(verb, @api_base_uri + path, param_key => params, headers: headers) - else + else self.class.public_send verb, path, query: params, headers: public_auth_header + end + + if response.headers["Warning"] + Unsplash.configuration.logger.warn response.headers["Warning"] end status_code = response.respond_to?(:status) ? response.status : response.code if !(200..299).include?(status_code) \ No newline at end of file