From e7e30a5fe1432597ef73b8869e559ee4ef43ccbe Mon Sep 17 00:00:00 2001 From: Maxwell Mburu Date: Wed, 18 Jan 2023 23:33:32 +0300 Subject: [PATCH] Pass omit_default_port from request to response --- lib/excon/response.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/excon/response.rb b/lib/excon/response.rb index 9f397c84..de6ea33e 100644 --- a/lib/excon/response.rb +++ b/lib/excon/response.rb @@ -81,12 +81,13 @@ def self.parse(socket, datum) :body => String.new, :cookies => [], :host => datum[:host], - :scheme => datum[:scheme], - :method => datum[:method], + :scheme => datum[:scheme], + :method => datum[:method], :headers => Excon::Headers.new, :path => datum[:path], - :query => datum[:query], + :query => datum[:query], :port => datum[:port], + :omit_default_port => datum[:omit_default_port], :status => status, :status_line => line, :reason_phrase => reason_phrase