~rdoering/ubuntu/karmic/erlang/fix-535090

« back to all changes in this revision

Viewing changes to lib/inets/src/http_lib/http_chunk.erl

  • Committer: Bazaar Package Importer
  • Author(s): Sergei Golovan
  • Date: 2009-02-15 16:42:52 UTC
  • mfrom: (3.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090215164252-q5x4rcf8a5pbesb1
Tags: 1:12.b.5-dfsg-2
Upload to unstable after lenny is released.

Show diffs side-by-side

added added

removed removed

Lines of Context:
82
82
    <<HEXSize/binary, ?CR, ?LF, Chunk/binary, ?CR, ?LF>>;
83
83
 
84
84
encode(Chunk) when is_list(Chunk)->
85
 
    HEXSize = http_util:integer_to_hexlist(length(Chunk)),
 
85
    HEXSize = http_util:integer_to_hexlist(erlang:iolist_size(Chunk)),
86
86
    [HEXSize,  ?CR, ?LF, Chunk, ?CR, ?LF].
87
87
 
88
88
encode_last() ->