summaryrefslogtreecommitdiffstats
path: root/module/network/HTTPChunk.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/network/HTTPChunk.py')
-rw-r--r--module/network/HTTPChunk.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/module/network/HTTPChunk.py b/module/network/HTTPChunk.py
index 3380fb733..d17177ee7 100644
--- a/module/network/HTTPChunk.py
+++ b/module/network/HTTPChunk.py
@@ -207,7 +207,7 @@ class HTTPChunk(HTTPRequest):
def writeHeader(self, buf):
self.header += buf
- #@TODO forward headers?, this is possibly unneeeded, when we just parse valid 200 headers
+ #@TODO forward headers?, this is possibly unneeded, when we just parse valid 200 headers
# as first chunk, we will parse the headers
if not self.range and self.header.endswith("\r\n\r\n"):
self.parseHeader()
@@ -236,8 +236,8 @@ class HTTPChunk(HTTPRequest):
sleep(self.p.bucket.consumed(size))
else:
# Avoid small buffers, increasing sleep time slowly if buffer size gets smaller
- # otherwise reduce sleep time percentual (values are based on tests)
- # So in general cpu time is saved without reducing bandwith too much
+ # otherwise reduce sleep time percentile (values are based on tests)
+ # So in general cpu time is saved without reducing bandwidth too much
if size < self.lastSize:
self.sleep += 0.002
@@ -253,7 +253,7 @@ class HTTPChunk(HTTPRequest):
def parseHeader(self):
- """parse data from recieved header"""
+ """parse data from received header"""
for orgline in self.decodeResponse(self.header).splitlines():
line = orgline.strip().lower()
if line.startswith("accept-ranges") and "bytes" in line: