diff --git a/README.md b/README.md index d7e638b..a021a2d 100644 --- a/README.md +++ b/README.md @@ -30,18 +30,16 @@ datarangers-sdk-php是 [DataRangers](https://datarangers.com.cn/) 的用户行 "domain" => "http://domain", "save" => true, "headers" => [ - "Host" => "host", "Content-Type" => "application/json" ], "http_timeout"=> 10000 ]); - # 私有化部署场景 http 模式,Host 必须配置,Host 没有http://,https:// + # 私有化部署场景 http 模式 CollectorConfig::init_datarangers_collector([ "domain" => "https://xxxx", "save" => false, "headers" => [ - "Host" => "xxxx", "Content-Type" => "application/json" ], "http_timeout"=> 10000 diff --git a/test/HttpTester.php b/test/HttpTester.php index 2548fb1..7f7cfae 100644 --- a/test/HttpTester.php +++ b/test/HttpTester.php @@ -11,7 +11,6 @@ "domain" => getenv("HTTP_DOMAIN"), "save" => false, "headers" => [ - "Host" => getenv("HTTP_HOST"), "Content-Type" => "application/json" ], "http_timeout"=> 10000