From 30c2c89c6bbf9a384328280d325c74cb2c9a9e22 Mon Sep 17 00:00:00 2001 From: Daniel Schwarz Date: Tue, 30 May 2017 16:13:49 +0200 Subject: [PATCH] fix partial url parsing --- sanic/server.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sanic/server.py b/sanic/server.py index e0bc4238..5cb57654 100644 --- a/sanic/server.py +++ b/sanic/server.py @@ -162,7 +162,10 @@ class HttpProtocol(asyncio.Protocol): self.write_error(exception) def on_url(self, url): - self.url = url + if not self.url: + self.url = url + else: + self.url += url def on_header(self, name, value): self._header_fragment += name