Explorar el Código

fix tracing request body if source is a function

pull/92/head
Eugene Girshov hace 12 años
padre
commit
125fe147c8
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. +2
    -0
      src/ibrowse_http_client.erl

+ 2
- 0
src/ibrowse_http_client.erl Ver fichero

@ -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.

Cargando…
Cancelar
Guardar