Skip to content

Commit f3681f0

Browse files
authored
Merge pull request #738 from tsuyoshicho/fix/http-python3-fliter
fix: http python3 fliter not list
2 parents 94d3026 + 5fdabef commit f3681f0

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Changes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
97e8cf8b230cd69720e130742859b51f5761196c
2+
Modules: Web.HTTP
3+
Added python3 to HTTP client, and refined its default value.
4+
Now 'python' client selects python3 or python2 automatically (python3 has a higher priority).
15
b2dd494bd56486ef898fdb49467e5763e81cde71
26
Modules: Text.TOML
37
TOML support version v0.4.0 compliant -> v0.5.0 compliant

autoload/vital/__vital__/Web/HTTP.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ try:
597597
return None
598598
if 0 < self.max_redirect:
599599
self.max_redirect -= 1
600-
header_list = filter(None, str(headers).split("\r\n"))
600+
header_list = list(filter(None, str(headers).split("\r\n")))
601601
responses.extend([[[status(code, msg)] + header_list, fp.read()]])
602602
return urllib.request.HTTPRedirectHandler.redirect_request(self, req, fp, code, msg, headers, newurl)
603603

0 commit comments

Comments
 (0)