Fix for [HER-1681] FetchFTP module doesn't set content-begin mark correctly.

Bug reported and fix suggested by Tomas Ukkonen.
* FetchFTP.java
    saveToRecorder(): call recorder.markContentBegin() after recorder.outputWrap()
This commit is contained in:
szznax
2009-10-01 02:21:17 +00:00
parent fef7a93bad
commit 677a816db4
@@ -325,9 +325,9 @@ public class FetchFTP extends Processor {
private void saveToRecorder(ProcessorURI curi,
Socket socket, Recorder recorder)
throws IOException, InterruptedException {
recorder.markContentBegin();
recorder.inputWrap(socket.getInputStream());
recorder.outputWrap(socket.getOutputStream());
recorder.markContentBegin();
// Read the remote file/dir listing in its entirety.
long softMax = 0;