bug in net/http.rb

O

Oleg.Bondarenko

Hi all,

I think I found a bug in net/http.rb. I am not sure this list is the right
one for submitting a bug report, but I hasn't found any explicit directions
on what to do with found bugs.

The problem is with using https through proxy server (only this combination
- http works and https without proxy too). I managed to make it work by
replacing the following line in the method "HTTP.request":

req.exec @socket, @curr_http_version, edit_path(req.path), body

With this one:

req.exec @socket, @curr_http_version, req.path, body

The edit_path function adds "https://hostname/" (in case of https) to the
path which I find wrong (you just send "GET <path>" through the wire, not
the whole uri).

Can someone explain it to me or fix it?


Oleg Bondarenko
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,202
Messages
2,571,055
Members
47,659
Latest member
salragu

Latest Threads

Top