package net.pterodactylus.rhynodge.states;
+import static java.util.Arrays.copyOf;
+
import java.io.UnsupportedEncodingException;
import net.pterodactylus.rhynodge.State;
this.uri = uri;
this.protocolCode = protocolCode;
this.contentType = contentType;
- this.rawResult = rawResult;
+ this.rawResult = copyOf(rawResult, rawResult.length);
}
//
* @return The raw result of the reply
*/
public byte[] rawResult() {
- return rawResult;
+ return copyOf(rawResult, rawResult.length);
}
/**