Skip to content

Commit

Permalink
Fixed bug in https requests without a proxy in between
Browse files Browse the repository at this point in the history
  • Loading branch information
Chandrashekhar Mullaparthi committed Jun 10, 2010
1 parent 07153bc commit d5580a5
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ ibrowse is available under two different licenses. LGPL or the BSD license.

Comments to : Chandrashekhar.Mullaparthi@gmail.com

Version : 1.6.0
Version : 1.6.1

Latest version : git://github.com/cmullaparthi/ibrowse.git

CONTRIBUTIONS & CHANGE HISTORY
==============================
10-06-2010 - * Fixed bug in https requests not going via the proxy

12-05-2010 - * Added support for the CONNECT method to tunnel HTTPS through
a proxy. When a https URL is requested through a proxy,
ibrowse will automatically use the CONNECT method to first
Expand Down
2 changes: 1 addition & 1 deletion ebin/ibrowse.app
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{application, ibrowse,
[{description, "HTTP client application"},
{vsn, "1.6.0"},
{vsn, "1.6.1"},
{modules, [ ibrowse,
ibrowse_http_client,
ibrowse_app,
Expand Down
1 change: 1 addition & 0 deletions src/ibrowse_http_client.erl
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,7 @@ filter_sock_options(Opts) ->

do_send(Req, #state{socket = Sock,
is_ssl = true,
use_proxy = true,
proxy_tunnel_setup = Pts}) when Pts /= done -> gen_tcp:send(Sock, Req);
do_send(Req, #state{socket = Sock, is_ssl = true}) -> ssl:send(Sock, Req);
do_send(Req, #state{socket = Sock, is_ssl = false}) -> gen_tcp:send(Sock, Req).
Expand Down
2 changes: 2 additions & 0 deletions src/ibrowse_test.erl
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ dump_errors(Key, Iod) ->
{"http://www.google.co.uk", get},
{"http://www.google.com", get},
{"http://www.google.com", options},
{"https://mail.google.com", get},
{"http://www.sun.com", get},
{"http://www.oracle.com", get},
{"http://www.bbc.co.uk", get},
Expand Down Expand Up @@ -222,6 +223,7 @@ unit_tests() ->
unit_tests([]).

unit_tests(Options) ->
application:start(ssl),
Options_1 = Options ++ [{connect_timeout, 5000}],
{Pid, Ref} = erlang:spawn_monitor(?MODULE, unit_tests_1, [self(), Options_1]),
receive
Expand Down
2 changes: 1 addition & 1 deletion vsn.mk
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
IBROWSE_VSN = 1.6.0
IBROWSE_VSN = 1.6.1

0 comments on commit d5580a5

Please sign in to comment.