From 3889f52411fcb230ad15c9e2efba0e006fcb824d Mon Sep 17 00:00:00 2001 From: "zhangpeng.spin" Date: Thu, 12 Sep 2024 16:39:15 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 +--- test/HttpTester.php | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) 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