fix isort
This commit is contained in:
Yun Xu 2018-12-03 23:16:45 -08:00
parent 7c9957e058
commit b5287184e9
2 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,6 @@
import asyncio
import json
import sys
import asyncio
from cgi import parse_header
from collections import namedtuple
@ -49,7 +49,6 @@ class RequestParameters(dict):
class StreamBuffer:
def __init__(self, buffer_size=None):
self._buffer_size = buffer_size or 100
self._queue = asyncio.Queue()

View File

@ -294,7 +294,9 @@ class HttpProtocol(asyncio.Protocol):
self.request
)
if self._is_stream_handler:
self.request.stream = StreamBuffer(self.request_body_buffer_queue_size)
self.request.stream = StreamBuffer(
self.request_body_buffer_queue_size
)
self.execute_request_handler()
def on_body(self, body):