Cast String Payloads to String

This commit is contained in:
Andrew Gaul 2013-04-03 13:30:47 -07:00
parent d938349229
commit 10d29f5ef2
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ public class BasePayloadSlicer implements PayloadSlicer {
if (input.getRawContent() instanceof File) {
returnVal = doSlice((File) input.getRawContent(), offset, length);
} else if (input.getRawContent() instanceof String) {
returnVal = doSlice((byte[]) input.getRawContent(), offset, length);
returnVal = doSlice((String) input.getRawContent(), offset, length);
} else if (input.getRawContent() instanceof byte[]) {
returnVal = doSlice((byte[]) input.getRawContent(), offset, length);
} else {