mirror of
https://github.com/lostisland/faraday.git
synced 2025-12-04 00:03:34 -05:00
fix EM Synchrony PATCH and OPTIONS methods
This commit is contained in:
parent
bd59f511fa
commit
7f9df7a08b
@ -71,7 +71,9 @@ require 'faraday/adapter/em_synchrony/parallel_manager'
|
||||
|
||||
# add missing patch(), options() methods
|
||||
EventMachine::HTTPMethods.module_eval do
|
||||
([:patch, :options] - instance_methods).each do |type|
|
||||
[:patch, :options].each do |type|
|
||||
next if method_defined? :"a#{type}"
|
||||
alias_method :"a#{type}", type if method_defined? type
|
||||
module_eval %[
|
||||
def #{type}(options = {}, &blk)
|
||||
f = Fiber.current
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user