diff options
author | bptato <nincsnevem662@gmail.com> | 2024-03-25 14:50:37 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-03-25 14:51:08 +0100 |
commit | 407ad7a1f04893a0598b2ea02e7d2eb118d1fa32 (patch) | |
tree | acd33b3980dd90ea8129bb6cb0b712c8fd0dac64 /src | |
parent | 00fa87199d70f5717446a32c04026880eccbbefa (diff) | |
download | chawan-407ad7a1f04893a0598b2ea02e7d2eb118d1fa32.tar.gz |
loader: fix failed doRequest handling
copy-paste error
Diffstat (limited to 'src')
-rw-r--r-- | src/loader/loader.nim | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/loader/loader.nim b/src/loader/loader.nim index 42271ea3..5aed021e 100644 --- a/src/loader/loader.nim +++ b/src/loader/loader.nim @@ -1030,8 +1030,7 @@ proc doRequest*(loader: FileLoader; request: Request): Response = let stream = loader.startRequest(request) let response = Response(url: request.url) var r = stream.initPacketReader() - var res: int - r.sread(res) # packet 1 + r.sread(response.res) # packet 1 if response.res == 0: r.sread(response.outputId) # packet 1 r = stream.initPacketReader() |