Merge pull request #1490 from maginatics/do-slice-string-cast

Cast String Payloads to String
This commit is contained in:
Adrian Cole 2013-04-03 17:56:45 -07:00
commit 3e9c3dc6e6
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) { if (input.getRawContent() instanceof File) {
returnVal = doSlice((File) input.getRawContent(), offset, length); returnVal = doSlice((File) input.getRawContent(), offset, length);
} else if (input.getRawContent() instanceof String) { } 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[]) { } else if (input.getRawContent() instanceof byte[]) {
returnVal = doSlice((byte[]) input.getRawContent(), offset, length); returnVal = doSlice((byte[]) input.getRawContent(), offset, length);
} else { } else {