HTTP works with basic test
This commit is contained in:
parent
9bc37513b6
commit
6b2c80e722
@ -1,3 +1,4 @@
|
||||
{
|
||||
"file": [{"module": "staccato.protocols.file.FileProtocol"}]
|
||||
"file": [{"module": "staccato.protocols.file.FileProtocol"}],
|
||||
"http": [{"module": "staccato.protocols.http.HttpProtocol"}]
|
||||
}
|
||||
|
@ -58,8 +58,6 @@ class HttpReadConnection(base.BaseReadConnection):
|
||||
self.monitor = monitor
|
||||
|
||||
def _read(self, buflen):
|
||||
if self.end and self.pos + buflen > self.end:
|
||||
buflen = self.end - self.pos
|
||||
buf = self.h_con.read(buflen)
|
||||
if not buf:
|
||||
return True, 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user