aboutsummaryrefslogtreecommitdiffstats
path: root/lib/inets/src/http_client
diff options
context:
space:
mode:
authorMasatake Daimon <[email protected]>2013-05-17 13:28:47 +0900
committerMasatake Daimon <[email protected]>2013-05-20 16:37:24 +0900
commite177b41eb2e4ce0996e323d8fd08d18f94b19964 (patch)
tree8703e2e5e9817f9cc0ec70d2c3a8472edaa72f6f /lib/inets/src/http_client
parent789490eca8382edca34bae593e88cdc5fd4fe444 (diff)
downloadotp-e177b41eb2e4ce0996e323d8fd08d18f94b19964.tar.gz
otp-e177b41eb2e4ce0996e323d8fd08d18f94b19964.tar.bz2
otp-e177b41eb2e4ce0996e323d8fd08d18f94b19964.zip
Remove http_chunk:decode/4 as it is no longer used
http_chunk:decode/4, the side-effecting chunk decoder, was only used by httpc_handler:handle_http_body/2 but now it's completely unused.
Diffstat (limited to 'lib/inets/src/http_client')
-rw-r--r--lib/inets/src/http_client/httpc_handler.erl5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/inets/src/http_client/httpc_handler.erl b/lib/inets/src/http_client/httpc_handler.erl
index ef16cddc81..55794f57dc 100644
--- a/lib/inets/src/http_client/httpc_handler.erl
+++ b/lib/inets/src/http_client/httpc_handler.erl
@@ -33,7 +33,6 @@
%% connect_and_send/2,
send/2,
cancel/3,
- stream/3,
stream_next/1,
info/1
]).
@@ -499,7 +498,7 @@ handle_info({Proto, _Socket, Data},
request = NewRequest}};
{Module, decode_data,
[ChunkSize, TotalChunk,
- {MaxBodySize, BodySoFar, AccLength, MaxHeaderSize, false}]}
+ {MaxBodySize, BodySoFar, AccLength, MaxHeaderSize}]}
when TotalChunk =/= <<>> orelse BodySoFar =/= <<>> ->
?hcrd("data processed - decode_data", []),
%% The response body is chunk-encoded. Steal decoded
@@ -514,7 +513,7 @@ handle_info({Proto, _Socket, Data},
NewState = next_body_chunk(State),
NewMFA = {Module, decode_data,
[NewChunkSize, NewTotalChunk,
- {MaxBodySize, NewBody, AccLength, MaxHeaderSize, false}]},
+ {MaxBodySize, NewBody, AccLength, MaxHeaderSize}]},
{noreply, NewState#state{mfa = NewMFA,
request = NewRequest}};
NewMFA ->