HTTP works with basic test

This commit is contained in:
John Bresnahan 2013-05-20 11:59:00 -10:00
parent 9bc37513b6
commit 6b2c80e722
2 changed files with 2 additions and 3 deletions

View File

@ -1,3 +1,4 @@
{
"file": [{"module": "staccato.protocols.file.FileProtocol"}]
"file": [{"module": "staccato.protocols.file.FileProtocol"}],
"http": [{"module": "staccato.protocols.http.HttpProtocol"}]
}

View File

@ -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