Selaa lähdekoodia

fix tracing request body if source is a function

pull/92/head
Eugene Girshov 12 vuotta sitten
vanhempi
commit
125fe147c8
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. +2
    -0
      src/ibrowse_http_client.erl

+ 2
- 0
src/ibrowse_http_client.erl Näytä tiedosto

@ -1926,5 +1926,7 @@ trace_request_body(Body) ->
ok
end.
to_binary({X, _}) when is_function(X) -> to_binary(X);
to_binary(X) when is_function(X) -> <<"body generated by function">>;
to_binary(X) when is_list(X) -> list_to_binary(X);
to_binary(X) when is_binary(X) -> X.

Ladataan…
Peruuta
Tallenna