Update webpagetool.php
This commit is contained in:
parent
8e8007057d
commit
44be1de174
|
@ -243,7 +243,7 @@ if(!function_exists("get_web_curl")) {
|
||||||
);
|
);
|
||||||
|
|
||||||
if(empty($options[CURLOPT_USERAGENT])) {
|
if(empty($options[CURLOPT_USERAGENT])) {
|
||||||
$ua = "github://gnh1201/reasonableframework";
|
$ua = "ReasonableFramework/1.1 (https://github.com/gnh1201/reasonableframework)";
|
||||||
$options[CURLOPT_USERAGENT] = $ua;
|
$options[CURLOPT_USERAGENT] = $ua;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -311,7 +311,7 @@ if(!function_exists("get_web_page")) {
|
||||||
|
|
||||||
// set user agent
|
// set user agent
|
||||||
if(empty($ua)) {
|
if(empty($ua)) {
|
||||||
$ua = "github://gnh1201/reasonableframework";
|
$ua = "ReasonableFramework/1.1 (https://github.com/gnh1201/reasonableframework)";
|
||||||
}
|
}
|
||||||
|
|
||||||
// redefine data
|
// redefine data
|
||||||
|
|
Loading…
Reference in New Issue
Block a user