瀏覽代碼

A body generating function returning 0 data looks to the end server as the end of the entity which it shouldn't

pull/63/head
Mistagrooves 13 年之前
父節點
當前提交
8dfdac84c1
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. +4
    -0
      src/ibrowse_http_client.erl

+ 4
- 0
src/ibrowse_http_client.erl 查看文件

@ -562,6 +562,10 @@ do_send_body(Body, State, _TE) ->
do_send_body1(Source, Resp, State, TE) ->
case Resp of
{ok, <<>>} ->
do_send_body({Source}, State, TE);
{ok, <<>>, New_source_state} ->
do_send_body({Source, New_source_state}, State, TE);
{ok, Data} ->
do_send(maybe_chunked_encode(Data, TE), State),
do_send_body({Source}, State, TE);

Loading…
取消
儲存