Skip to content

Commit

Permalink
fix chuncked response
Browse files Browse the repository at this point in the history
  • Loading branch information
Administrator committed Aug 7, 2013
1 parent 7a648bb commit bf217eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mochiweb_request.erl
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ respond({Code, ResponseHeaders, {file, IoDevice}},
'HEAD' ->
ok;
_ ->
mochiweb_io:iodevice_stream(fun send/2, IoDevice)
mochiweb_io:iodevice_stream(fun(IOData) -> send(IOData,THIS) end, IoDevice)
end,
Response;
respond({Code, ResponseHeaders, chunked}, {?MODULE, [_Socket, Method, _RawPath, Version, _Headers]}=THIS) ->
Expand Down

0 comments on commit bf217eb

Please sign in to comment.