Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Host got deformed in redirection #12

Open
bararchy opened this issue Jul 28, 2017 · 0 comments
Open

Host got deformed in redirection #12

bararchy opened this issue Jul 28, 2017 · 0 comments

Comments

@bararchy
Copy link

Run:

 #<Cossack::Request:0x55bb428007c0 @method="GET", @uri=#<URI:0x55bb42801360 @scheme="http", @host="172.16.123.129", @port=nil, @path="", @query=nil, @user=nil, @password=nil, @fragment=nil, @opaque=nil>, @headers=HTTP::Headers{"User-Agent" => "Cossack v0.1.4"}, @body=nil, @options=#<Cossack::RequestOptions:0x55bb42807d60 @connect_timeout=30.0, @read_timeout=30.0>>

Redirect:

#<Cossack::Request:0x55bb42800240 @method="GET", @uri=#<URI:0x55bb42801000 @scheme="http", @host="172.16.123.129http", @port=nil, @path="/172.16.123.129", @query=nil, @user=nil, @password=nil, @fragment=nil, @opaque=nil>, @headers=HTTP::Headers{"User-Agent" => "Cossack v0.1.4"}, @body=nil, @options=#<Cossack::RequestOptions:0x55bb42807d60 @connect_timeout=30.0, @read_timeout=30.0>>

I had to overload

class HTTPConnection < Connection
    def call(request : Request) : Response

And add prints there to track it down

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant