forked from uup-dump/api
Gracefully handle lack of the cookie
This commit is contained in:
1 parent
1ef84cb879
commit
0477fd5fa6
6 files changed
+13
-4
No files matched your search
@@ -102,6 +102,9 @@ function sendWuPostRequestHelper(
|
||||
];
|
||||
|
||||
$postData = call_user_func_array($postComposer, $postComposerArgs);
|
||||
if($postData === false)
|
||||
return false;
|
||||
|
||||
$data = sendWuPostRequestInternal($endpoints[$endpoint], $postData, $saveCookie);
|
||||
|
||||
if($data['error'] == 500 && preg_match('/<ErrorCode>(ConfigChanged|CookieExpired|InvalidCookie)<\/ErrorCode>/', $data['out'])) {
|
||||
|
||||
Reference in new issue
Block a user