更新wifi连接的代码,改三角形的连接为1秒超时
This commit is contained in:
@@ -758,7 +758,12 @@ class OTAManager:
|
||||
|
||||
parsed = urlparse(url)
|
||||
host = parsed.hostname
|
||||
# MHTTPREQUEST 的路径必须包含 query(七牛/ OSS 签名、token 多在 ? 后),否则易 403/HTML,header 无 CL → no_header_or_total
|
||||
path = parsed.path or "/"
|
||||
if parsed.query:
|
||||
path = f"{path}?{parsed.query}"
|
||||
if parsed.fragment:
|
||||
path = f"{path}#{parsed.fragment}"
|
||||
if not host:
|
||||
return False, "bad_url (no host)"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user