Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
helloxz committed May 4, 2020
1 parent e62cb32 commit ef933b5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions functions/cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
$url = str_replace("\\","/",$url);
$curl = curl_init($url);

//echo $url;

curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36");
curl_setopt($curl, CURLOPT_FAILONERROR, true);
Expand Down Expand Up @@ -83,7 +82,7 @@ function get_url(){

//$uri = str_replace("cache.php","",$uri);
//组合为完整的URL
$domain = $protocol.$_SERVER['SERVER_NAME'].$port.$uri;
$domain = $protocol.$_SERVER['HTTP_HOST'].$port.$uri;
return $domain;
}
?>
Expand Down

0 comments on commit ef933b5

Please sign in to comment.