commit | e44a372ee5ae3f728ea595dcf16407c1f916fb14 | [log] [tgz] |
---|---|---|
author | ILYA Khlopotov <iilyak@ca.ibm.com> | Tue Mar 01 09:13:56 2016 -0800 |
committer | ILYA Khlopotov <iilyak@ca.ibm.com> | Tue Mar 01 09:13:56 2016 -0800 |
tree | 403a84c2e83cddd333193e0d24d550154b3fb311 | |
parent | b208d8e4ab36fa94dccb086a0b52013cccaeb22c [diff] |
Remove iolist_size(Data) == 0 case from send_chunk This case is handled by start_delayed_response functions.
diff --git a/src/couch_httpd.erl b/src/couch_httpd.erl index 7687453..15d43d0 100644 --- a/src/couch_httpd.erl +++ b/src/couch_httpd.erl
@@ -584,10 +584,7 @@ send_chunk(Resp, Data) -> - case iolist_size(Data) of - 0 -> ok; % do nothing - _ -> Resp:write_chunk(Data) - end, + Resp:write_chunk(Data), {ok, Resp}. last_chunk(Resp) ->