Commit f2ffe00d authored by di68kap's avatar di68kap

- DHParser/ One more TODO

parent 457366a1
......@@ -564,6 +564,8 @@ class Server:
m2 = re_find(data, RE_DATA_START)
if m2:
k = m2.end()
# Only covers the case where more data than the expected has been sent
# TODO: Provide for the case that less data has been sent, too
assert len(data) >= k + l
if k + l < len(data):
self.data_buffer = data[k + l:]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment