fix lint
fix isort
This commit is contained in:
parent
7c9957e058
commit
b5287184e9
|
@ -1,6 +1,6 @@
|
||||||
|
import asyncio
|
||||||
import json
|
import json
|
||||||
import sys
|
import sys
|
||||||
import asyncio
|
|
||||||
|
|
||||||
from cgi import parse_header
|
from cgi import parse_header
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
|
@ -49,7 +49,6 @@ class RequestParameters(dict):
|
||||||
|
|
||||||
|
|
||||||
class StreamBuffer:
|
class StreamBuffer:
|
||||||
|
|
||||||
def __init__(self, buffer_size=None):
|
def __init__(self, buffer_size=None):
|
||||||
self._buffer_size = buffer_size or 100
|
self._buffer_size = buffer_size or 100
|
||||||
self._queue = asyncio.Queue()
|
self._queue = asyncio.Queue()
|
||||||
|
|
|
@ -294,7 +294,9 @@ class HttpProtocol(asyncio.Protocol):
|
||||||
self.request
|
self.request
|
||||||
)
|
)
|
||||||
if self._is_stream_handler:
|
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()
|
self.execute_request_handler()
|
||||||
|
|
||||||
def on_body(self, body):
|
def on_body(self, body):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user