# Bug in net/http.rb

**URL:** <https://www.ruby-forum.com/t/bug-in-net-http-rb/52928>\
**Category:** Ruby\
**Created:** [January 20, 2006, 3:19pm UTC](https://www.ruby-forum.com/t/bug-in-net-http-rb/52928 "2006-01-20T15:19:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [January 20, 2006, 3:19pm UTC](https://www.ruby-forum.com/t/bug-in-net-http-rb/52928/1 "2006-01-20T15:19:06Z")

</div>

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”:

With this one:

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

```

The edit\_path function adds “[https://hostname/](https://hostname/)” (in case of https) to  
the  
path which I find wrong (you just send “GET ” through the wire,  
not  
the whole uri).

Can someone explain it to me or fix it?

Oleg Bondarenko
