Revision: 17356
http://sourceforge.net/p/gate/code/17356
Author: ian_roberts
Date: 2014-02-20 11:37:42 +0000 (Thu, 20 Feb 2014)
Log Message:
-----------
Need to use two-argument HeaderedArchiveRecord constructor in order to get the
HTTP headers to work.
Modified Paths:
--------------
gcp/trunk/src/gate/cloud/io/arc/WARCInputHandler.java
Modified: gcp/trunk/src/gate/cloud/io/arc/WARCInputHandler.java
===================================================================
--- gcp/trunk/src/gate/cloud/io/arc/WARCInputHandler.java 2014-02-20
09:30:17 UTC (rev 17355)
+++ gcp/trunk/src/gate/cloud/io/arc/WARCInputHandler.java 2014-02-20
11:37:42 UTC (rev 17356)
@@ -26,7 +26,9 @@
@Override
protected ArchiveRecord archiveRecordFromByteArray(byte[] data, String url)
throws IOException {
- return new HeaderedArchiveRecord(new WARCRecord(new
ByteArrayInputStream(data), url, 0, false, false));
+ return new HeaderedArchiveRecord(
+ new WARCRecord(new ByteArrayInputStream(data), url, 0, false,
false),
+ true);
}
@Override
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs