Skip to content

Commit

Permalink
Fix #586: require newer excon, use valid parameter keys interface
Browse files Browse the repository at this point in the history
  • Loading branch information
ls-todd-lunter committed Jul 8, 2024
1 parent 6f7b7cd commit 0f6be13
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker-api.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Gem::Specification.new do |gem|
gem.files = `git ls-files lib README.md LICENSE`.split($\)
gem.name = 'docker-api'
gem.version = Docker::VERSION
gem.add_dependency 'excon', '>= 0.47.0'
gem.add_dependency 'excon', '>= 0.64.0'
gem.add_dependency 'multi_json'
gem.add_development_dependency 'rake'
gem.add_development_dependency 'rspec', '~> 3.0'
Expand Down
6 changes: 4 additions & 2 deletions lib/excon/middlewares/hijack.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
module Excon
VALID_REQUEST_KEYS << :hijack_block

module Middleware
# Hijack is an Excon middleware which parses response headers and then
# yields the underlying TCP socket for raw TCP communication (used to
# attach to STDIN of containers).
class Hijack < Base
def self.valid_parameter_keys
[:hijack_block].freeze
end

def build_response(status, socket)
response = {
:body => '',
Expand Down

0 comments on commit 0f6be13

Please sign in to comment.