通知短信+运营短信,5秒速达,支持群发助手一键发送🚀高效触达和通知客户 广告
# 使用Chrome访问服务器会产生2次请求 [TOC] 这是因为`Chrome`浏览器会自动请求一次`favicon.ico`,所以服务器会收到`2`个`Request`,通过打印`$req->server['request_uri']`能看到请求的`URL`路径。 ## 屏蔽 favicon.ico ~~~ $uri = $req->server['request_uri']; if ($uri == '/favicon.ico') { $res->status(404); $res->end(); } ~~~ > 上述示例代码中,$req 为 Http\\Request 对象,$res 为 Http\\Response 对象