Merge pull request #4599 from davidfuhr/http-400-error-handling
Fix handling of http 400 errorspull/4690/head
commit
04879e82ae
|
@ -334,6 +334,12 @@ class RemoteFilesystem
|
||||||
{
|
{
|
||||||
switch ($notificationCode) {
|
switch ($notificationCode) {
|
||||||
case STREAM_NOTIFY_FAILURE:
|
case STREAM_NOTIFY_FAILURE:
|
||||||
|
if (400 === $messageCode) {
|
||||||
|
// This might happen if your host is secured by ssl client certificate authentication
|
||||||
|
// but you do not send an appropriate certificate
|
||||||
|
throw new TransportException("The '" . $this->fileUrl . "' URL could not be accessed: " . $message, $messageCode);
|
||||||
|
}
|
||||||
|
|
||||||
case STREAM_NOTIFY_AUTH_REQUIRED:
|
case STREAM_NOTIFY_AUTH_REQUIRED:
|
||||||
if (401 === $messageCode) {
|
if (401 === $messageCode) {
|
||||||
// Bail if the caller is going to handle authentication failures itself.
|
// Bail if the caller is going to handle authentication failures itself.
|
||||||
|
|
Loading…
Reference in New Issue