Skip to content

Commit

Permalink
Require 'date' to avoid retry exception
Browse files Browse the repository at this point in the history
Without requiring 'date', we get an exception in the retry middleware
when it tries to use DateTime for handling the Retry-After header.
  • Loading branch information
Rusty Geldmacher authored and olleolleolle committed Nov 13, 2020
1 parent 01c25e8 commit 8c746f6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/faraday.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# frozen_string_literal: true

require 'cgi'
require 'date'
require 'set'
require 'forwardable'
require 'faraday/middleware_registry'
Expand Down

0 comments on commit 8c746f6

Please sign in to comment.