You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -197,7 +197,7 @@ public static function openBinary(ClientRuntimeContext $ctx, $serverRelativeUrl,
197
197
$options = newRequestOptions($url);
198
198
$options->TransferEncodingChunkedAllowed = true;
199
199
$response = $ctx->executeQueryDirect($options);
200
-
if (400 <= ($statusCode = $response->getStatusCode())) {
200
+
if (400 <= $statusCode = $response->getStatusCode()) {
201
201
thrownewRequestException(sprintf('Could not open file located at "%s". SharePoint has responded with status code %d, error was: %s', rawurldecode($serverRelativeUrl), $statusCode, $response->getContent()), $statusCode, $response->getContent());
202
202
}
203
203
return$response->getContent();
@@ -1065,4 +1065,11 @@ public function setSuppressExpirationNotification($value)
0 commit comments