소스 검색

fix tracing request body if source is a function

pull/92/head
Eugene Girshov 12 년 전
부모
커밋
125fe147c8
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. +2
    -0
      src/ibrowse_http_client.erl

+ 2
- 0
src/ibrowse_http_client.erl 파일 보기

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

불러오는 중...
취소
저장