X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=application%2Fhub%2Fmain%2Fstreams%2Fraw_data%2Finput%2Fclass_RawDataInputStream.php;h=17fd7541028210f9a814460b7ce29aea596ba3ab;hb=9aa0ae335d8821392ae8a97f9a0c05638a131e66;hp=c6b199ec1cb7e16e2d7f1a930d72b9266882ae7d;hpb=1ffaee9c3c9e31c46acd554633ddb68ce0162fd9;p=hub.git diff --git a/application/hub/main/streams/raw_data/input/class_RawDataInputStream.php b/application/hub/main/streams/raw_data/input/class_RawDataInputStream.php index c6b199ec1..17fd75410 100644 --- a/application/hub/main/streams/raw_data/input/class_RawDataInputStream.php +++ b/application/hub/main/streams/raw_data/input/class_RawDataInputStream.php @@ -60,11 +60,11 @@ class RawDataInputStream extends BaseStream implements InputStreamable { // Can it be validated? if ((strlen($data) % 4) != 0) { // Length modulo 4 must be zero, else it is an invalid Base64 message - $this->getHandlerInstance()->setErrorCode(BaseNetworkPackageHandler::SOCKET_ERROR_INVALID_BASE64_MODULO); + $this->getHandlerInstance()->setErrorCode(BaseRawDataHandler::SOCKET_ERROR_INVALID_BASE64_MODULO); $data = false; } elseif (!$this->isBase64Encoded($data)) { // Is not a valid Base64-encoded message - $this->getHandlerInstance()->setErrorCode(BaseNetworkPackageHandler::SOCKET_ERROR_INVALID_BASE64_MESSAGE); + $this->getHandlerInstance()->setErrorCode(BaseRawDataHandler::SOCKET_ERROR_INVALID_BASE64_MESSAGE); $data = false; } else { // Decode the data with BASE64-encoding