docs: update roadmap and task tracking
- README: update feature list - ROADMAP: add completed features, update priorities - TODO: mark completed tasks, add new items - config.ini.sample: update example values - http2: minor cleanup
This commit is contained in:
8
http2.py
8
http2.py
@@ -159,7 +159,7 @@ class RsHttp():
|
||||
if postdata != '':
|
||||
s += postdata
|
||||
if self.debugreq:
|
||||
print ">>>\n", s
|
||||
print(">>>\n", s)
|
||||
return s
|
||||
|
||||
def _make_head_request(self, url, extras=None):
|
||||
@@ -268,7 +268,7 @@ class RsHttp():
|
||||
res = res.decode(charset)
|
||||
|
||||
if self.debugreq:
|
||||
print "<<<\n", s, res
|
||||
print("<<<\n", s, res)
|
||||
|
||||
return (s, res, redirect)
|
||||
|
||||
@@ -377,7 +377,7 @@ class RsHttp():
|
||||
l = self.conn.recvline().strip()
|
||||
s += l + '\n'
|
||||
if l == '': break
|
||||
if self.debugreq: print "<<<\n", s
|
||||
if self.debugreq: print("<<<\n", s)
|
||||
return s
|
||||
|
||||
def head(self, url, extras=None):
|
||||
@@ -433,7 +433,7 @@ if __name__ == '__main__':
|
||||
http = RsHttp(host=host, port=port, timeout=15, ssl=use_ssl, follow_redirects=True, auto_set_cookies=True)
|
||||
http.debugreq = True
|
||||
if not http.connect():
|
||||
print "sorry, couldn't connect"
|
||||
print("sorry, couldn't connect")
|
||||
else:
|
||||
hdr = http.head(uri)
|
||||
hdr, res = http.get(uri)
|
||||
|
||||
Reference in New Issue
Block a user