Actions
Bug #10054
closed
Updated by naruse (Yui NARUSE) almost 11 years ago
- Status changed from Open to Feedback
Why don't you use http_proxy?
Updated by semenyukd (Dmitriy Semenyuk) almost 11 years ago
Yui NARUSE wrote:
Why don't you use http_proxy?
I need this only for some requests (imagine database that stores URLs, headers and request bodies) so adding http_proxy makes code more difficult.
Updated by naruse (Yui NARUSE) almost 11 years ago
- Status changed from Feedback to Closed
- % Done changed from 0 to 100
Applied in changeset r47077.
lib/net/http/generic_request.rb (Net::HTTP::GenericRequest#exec):
handle req['host'] in update_uri.lib/net/http/generic_request.rb
(Net::HTTP::GenericRequest#update_uri):
use req['host'] if it is explicitly set. Even if URI is given,
it is already used for the initial value of req['host'].
Therefore overwritten value should be respected. [Bug ]
Actions
Like0Like0Like0Like0