diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index a26b3e5ad9b..ea2d92b41ee 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -39,6 +39,7 @@ If you like to use *virtualenv* please run: $ cd aiohttp $ virtualenv --python=`which python3` venv + $ . venv/bin/activate For standard python *venv*: @@ -46,6 +47,7 @@ For standard python *venv*: $ cd aiohttp $ python3 -m venv venv + $ . venv/bin/activate For *virtualenvwrapper* (my choice): diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt index 0a5a9a7146a..c5006a2d9f7 100644 --- a/CONTRIBUTORS.txt +++ b/CONTRIBUTORS.txt @@ -108,6 +108,7 @@ Pankaj Pandey Pau Freixes Paul Colomiets Philipp A. +Rafael Viotti Raúl Cumplido "Required Field" Robert Lu diff --git a/aiohttp/multipart.py b/aiohttp/multipart.py index 093c85603a7..9c2c7db80ed 100644 --- a/aiohttp/multipart.py +++ b/aiohttp/multipart.py @@ -332,10 +332,6 @@ def _read_chunk_from_stream(self, size): chunk = window[len(self._prev_chunk):idx] if not chunk: self._at_eof = True - if 0 < len(chunk) < len(sub) and not self._content_eof: - self._prev_chunk += chunk - self._at_eof = False - return b'' result = self._prev_chunk self._prev_chunk = chunk return result diff --git a/docs/web.rst b/docs/web.rst index 6f2cdb2bcf2..a5ba41b7f25 100644 --- a/docs/web.rst +++ b/docs/web.rst @@ -591,7 +591,7 @@ should use :meth:`Request.multipart` which returns :ref:`multipart reader filename = mp3.filename - # You cannot relay on Content-Length if transfer is chunked. + # You cannot rely on Content-Length if transfer is chunked. size = 0 with open(os.path.join('/spool/yarrr-media/mp3/', filename), 'wb') as f: while True: