diff options
-rw-r--r-- | src/mochiweb/mochiweb_response.erl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mochiweb/mochiweb_response.erl b/src/mochiweb/mochiweb_response.erl index d69c6726..6285c4c4 100644 --- a/src/mochiweb/mochiweb_response.erl +++ b/src/mochiweb/mochiweb_response.erl @@ -50,8 +50,7 @@ write_chunk(Data) -> case Request:get(version) of Version when Version >= {1, 1} -> Length = iolist_size(Data), - send(io_lib:format("~.16b\r\n", [Length])), - send([Data, <<"\r\n">>]); + send([io_lib:format("~.16b\r\n", [Length]), Data, <<"\r\n">>]); _ -> send(Data) end. |