diff options
-rwxr-xr-x | src/fead.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fead.py b/src/fead.py index 600dff0..ffe7b6f 100755 --- a/src/fead.py +++ b/src/fead.py @@ -151,7 +151,8 @@ async def fetch(raw_url): reader, writer = await open_connection(url.hostname, 80) else: raise ValueError(f'unsupported URL scheme: {url.scheme}') - writer.write(REQUEST.format(url.path or '/', url.hostname).encode()) + writer.write(REQUEST.format(f"{url.path or '/'}?{url.query}", + url.hostname).encode()) response = HTTPResponse(BytesSocket(await reader.read())) writer.close() |