Browse Source

fix tracing request body if source is a function

pull/92/head
Eugene Girshov 12 years ago
parent
commit
125fe147c8
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/ibrowse_http_client.erl

+ 2
- 0
src/ibrowse_http_client.erl View File

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

Loading…
Cancel
Save