mirror of https://github.com/apache/jclouds.git
Merge pull request #1490 from maginatics/do-slice-string-cast
Cast String Payloads to String
This commit is contained in:
commit
3e9c3dc6e6
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue