mirror of
https://github.com/lostisland/faraday.git
synced 2025-12-04 00:03:34 -05:00
parent
a5f027e1ce
commit
e29ec08545
@ -1,4 +1,4 @@
|
||||
Copyright (c) 2009-2015 Rick Olson, Zack Hobson
|
||||
Copyright (c) 2009-2017 Rick Olson, Zack Hobson
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
|
||||
@ -325,7 +325,7 @@ of a major release, support for that Ruby version may be dropped.
|
||||
|
||||
## Copyright
|
||||
|
||||
Copyright (c) 2009-2013 [Rick Olson](mailto:technoweenie@gmail.com), Zack Hobson.
|
||||
Copyright (c) 2009-2017 [Rick Olson](mailto:technoweenie@gmail.com), Zack Hobson.
|
||||
See [LICENSE][] for details.
|
||||
|
||||
[net_http]: http://ruby-doc.org/stdlib/libdoc/net/http/rdoc/Net/HTTP.html
|
||||
|
||||
@ -151,8 +151,9 @@ module Faraday
|
||||
@options.methods.include?(env[:method]) || @options.retry_if.call(env, exception)
|
||||
end
|
||||
|
||||
def rewind_files(env)
|
||||
env && env.each do |_, value|
|
||||
def rewind_files(body)
|
||||
return unless body.is_a?(Hash)
|
||||
body.each do |_, value|
|
||||
if value.is_a? UploadIO
|
||||
value.rewind
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user