Skip to content

Commit c928f25

Browse files
committed
handle 301 redirect code
1 parent e29caac commit c928f25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/functions_ggg.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function fetch_page($url, $cookie = '', $redirect_count = 0) {
1717

1818
curl_close($ch);
1919

20-
if ($info['http_code'] == 302) {
20+
if ($info['http_code'] == 301 || $info['http_code'] == 302) {
2121
return $redirect_count < 5 ? fetch_page($info['redirect_url'], $cookie, $redirect_count + 1) : null;
2222
}
2323

0 commit comments

Comments
 (0)