fix partial url parsing

This commit is contained in:
Daniel Schwarz 2017-05-30 16:13:49 +02:00
parent aaef2fbd01
commit 30c2c89c6b

View File

@ -162,7 +162,10 @@ class HttpProtocol(asyncio.Protocol):
self.write_error(exception) self.write_error(exception)
def on_url(self, url): def on_url(self, url):
if not self.url:
self.url = url self.url = url
else:
self.url += url
def on_header(self, name, value): def on_header(self, name, value):
self._header_fragment += name self._header_fragment += name