Przeglądaj źródła

- fix bug when using an ssl socket with socket_options.

do_setopts/3 was being called with the 3rd arg as a boolean instead of the "State".
pull/22/head
jlo 14 lat temu
rodzic
commit
d33070b86b
1 zmienionych plików z 2 dodań i 3 usunięć
  1. +2
    -3
      src/ibrowse_http_client.erl

+ 2
- 3
src/ibrowse_http_client.erl Wyświetl plik

@ -683,8 +683,7 @@ send_req_1(From,
path = RelPath} = Url,
Headers, Method, Body, Options, Timeout,
#state{status = Status,
socket = Socket,
is_ssl = Is_ssl} = State) ->
socket = Socket} = State) ->
ReqId = make_req_id(),
Resp_format = get_value(response_format, Options, list),
Caller_socket_options = get_value(socket_options, Options, []),
@ -723,7 +722,7 @@ send_req_1(From,
Headers_1,
AbsPath, RelPath, Body, Options, State_1),
trace_request(Req),
do_setopts(Socket, Caller_socket_options, Is_ssl),
do_setopts(Socket, Caller_socket_options, State_1),
TE = is_chunked_encoding_specified(Options),
case do_send(Req, State_1) of
ok ->

Ładowanie…
Anuluj
Zapisz