aboutsummaryrefslogtreecommitdiffstats
path: root/lib/inets/src/http_server/mod_esi.erl
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2011-03-18 14:47:29 +0100
committerMicael Karlberg <[email protected]>2011-03-18 14:47:29 +0100
commitf4b5ea566829cad609e14c2264158665b84800c1 (patch)
tree55fe591e7fc447e2bd8d5c636a7c431ee05dd15c /lib/inets/src/http_server/mod_esi.erl
parente343c5b24ca4d642f327e6ec57d63094b28b2838 (diff)
parentb5aae77205c8081b79aa9ce1f1141f21f6e1fc2c (diff)
downloadotp-f4b5ea566829cad609e14c2264158665b84800c1.tar.gz
otp-f4b5ea566829cad609e14c2264158665b84800c1.tar.bz2
otp-f4b5ea566829cad609e14c2264158665b84800c1.zip
Merge branch 'bmk/inets/httpd/make_mod_esi_deliver_accept_binary_data/OTP-9123' into bmk/inets/inet56_integration
Conflicts: lib/inets/doc/src/notes.xml lib/inets/src/inets_app/inets.appup.src
Diffstat (limited to 'lib/inets/src/http_server/mod_esi.erl')
-rw-r--r--lib/inets/src/http_server/mod_esi.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/inets/src/http_server/mod_esi.erl b/lib/inets/src/http_server/mod_esi.erl
index 929185a67a..b85c479693 100644
--- a/lib/inets/src/http_server/mod_esi.erl
+++ b/lib/inets/src/http_server/mod_esi.erl
@@ -452,6 +452,10 @@ handle_body(Pid, ModData, Body, Timeout, Size, IsDisableChunkedSend) ->
?hdrt("handle_body - send chunk", [{timeout, Timeout}, {size, Size}]),
httpd_response:send_chunk(ModData, Body, IsDisableChunkedSend),
receive
+ {esi_data, Data} when is_binary(Data) ->
+ ?hdrt("handle_body - received binary data (esi)", []),
+ handle_body(Pid, ModData, Data, Timeout, Size + byte_size(Data),
+ IsDisableChunkedSend);
{esi_data, Data} ->
?hdrt("handle_body - received data (esi)", []),
handle_body(Pid, ModData, Data, Timeout, Size + length(Data),