You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
curl_cffi\requests\headers.py", line 132, in init
k, v = line.split(sep, maxsplit=1) # pyright: ignore
ValueError: not enough values to unpack (expected 2, got 1) if isinstance(headers[0], (str, bytes)): print(headers[0]) sep = ":" if isinstance(headers[0], str) else b":" h = [] for line in headers: k, v = line.split(sep, maxsplit=1) # pyright: ignore h.append((k, v.strip()))
Describe the bug
curl_cffi\requests\headers.py", line 132, in init
k, v = line.split(sep, maxsplit=1) # pyright: ignore
ValueError: not enough values to unpack (expected 2, got 1)
if isinstance(headers[0], (str, bytes)): print(headers[0]) sep = ":" if isinstance(headers[0], str) else b":" h = [] for line in headers: k, v = line.split(sep, maxsplit=1) # pyright: ignore h.append((k, v.strip()))
在访问某个网站的时候响应头是
b'SSH-2.0-OpenSSH_7.9p1 Debian-10+deb10u3'
不包含冒号就会报错Versions
The text was updated successfully, but these errors were encountered: