grpc: update deprecated method (#74)

* grpc: update deprecated method

* grpc: add connection timeout

* remove cf-ns.com

* prolong connection timeout to 10s

* remove connection timeout
This commit is contained in:
UUBulb
2024-10-18 15:08:51 +08:00
committed by GitHub
parent c6eb90708e
commit 404260187c
5 changed files with 9 additions and 12 deletions
+2 -2
View File
@@ -34,8 +34,8 @@ func Printf(enabled bool, format string, v ...interface{}) {
}
}
func BrowserHeaders() *http.Header {
return &http.Header{
func BrowserHeaders() http.Header {
return http.Header{
"Accept": {"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8"},
"Accept-Language": {"en,zh-CN;q=0.9,zh;q=0.8"},
"User-Agent": {MacOSChromeUA},