Skip to content

Commit

Permalink
include port in default host header
Browse files Browse the repository at this point in the history
closes #11
  • Loading branch information
geemus committed Dec 22, 2010
1 parent c8a8c44 commit 384d41a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/excon/connection.rb
Expand Up @@ -19,7 +19,7 @@ class Connection
def initialize(url, params = {})
uri = URI.parse(url)
@connection = {
:headers => { 'Host' => uri.host },
:headers => { 'Host' => "#{uri.host}:#{uri.port}" },
:host => uri.host,
:path => uri.path,
:port => uri.port,
Expand Down

0 comments on commit 384d41a

Please sign in to comment.