summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDamien F. Katz <damien@apache.org>2008-07-25 00:35:11 +0000
committerDamien F. Katz <damien@apache.org>2008-07-25 00:35:11 +0000
commit7af5cf32115b33a5b1245cdb64088b338d857975 (patch)
tree09c331e3eaed392bfd1578689d2223cdb30ab426 /src
parentc63d078f876652088a1c3f344f716306f4a24043 (diff)
Fix for problem with Safari and mochiweb.
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@679636 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/mochiweb/mochiweb_response.erl3
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.