couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From iil...@apache.org
Subject [50/50] couch-httpd commit: updated refs/heads/split_out_httpd_stack to e44a372
Date Tue, 01 Mar 2016 20:01:23 GMT
Remove iolist_size(Data) == 0 case from send_chunk

This case is handled by start_delayed_response functions.


Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/commit/e44a372e
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/tree/e44a372e
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/diff/e44a372e

Branch: refs/heads/split_out_httpd_stack
Commit: e44a372ee5ae3f728ea595dcf16407c1f916fb14
Parents: b208d8e
Author: ILYA Khlopotov <iilyak@ca.ibm.com>
Authored: Tue Mar 1 09:13:56 2016 -0800
Committer: ILYA Khlopotov <iilyak@ca.ibm.com>
Committed: Tue Mar 1 09:13:56 2016 -0800

----------------------------------------------------------------------
 src/couch_httpd.erl | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/blob/e44a372e/src/couch_httpd.erl
----------------------------------------------------------------------
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(Resp, Data) ->
 
 
 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) ->


Mime
View raw message