summaryrefslogtreecommitdiff
path: root/paste/httpserver.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2019-09-04 03:11:59 -0700
committerChris Dent <cdent@anticdent.org>2019-09-04 11:11:59 +0100
commita55bf98f51c57880e9c2cead4c01b5c23ce09839 (patch)
treeb7241aad669b616c37d8ff6275dcb60be9eb8596 /paste/httpserver.py
parentcdd2a9a58c59b8e599aa42b66b3c55ea47c7a4b7 (diff)
downloadpaste-git-a55bf98f51c57880e9c2cead4c01b5c23ce09839.tar.gz
Make LimitedLengthFile file return empty bytes rather than empty string when it's done. (#32)
Diffstat (limited to 'paste/httpserver.py')
-rwxr-xr-xpaste/httpserver.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/paste/httpserver.py b/paste/httpserver.py
index f91eb20..063c180 100755
--- a/paste/httpserver.py
+++ b/paste/httpserver.py
@@ -487,7 +487,7 @@ class LimitedLengthFile(object):
length = min(length, left)
# next two lines are hnecessary only if read(0) blocks
if not left:
- return ''
+ return b''
data = self.file.read(length)
self._consumed += len(data)
return data