diff options
author | bptato <nincsnevem662@gmail.com> | 2024-02-18 21:03:54 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-02-18 21:05:34 +0100 |
commit | 01b083bada3ad8ceb7d89cc215536ff738bfe876 (patch) | |
tree | 4cf472c6c1677a0ea98cf9f0c42bd88f30df910e /src/server | |
parent | 74296e6a91a21fbb34ecd079631098443593b4e6 (diff) | |
download | chawan-01b083bada3ad8ceb7d89cc215536ff738bfe876.tar.gz |
buffer: fix broken jump-to-anchor
source.request.url is not used after buffer initialization (because it may be replaced later), so we must set buffer.url instead.
Diffstat (limited to 'src/server')
-rw-r--r-- | src/server/buffer.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/buffer.nim b/src/server/buffer.nim index 3804d1b9..27308ff3 100644 --- a/src/server/buffer.nim +++ b/src/server/buffer.nim @@ -937,7 +937,7 @@ proc clone*(buffer: Buffer, newurl: URL): Pid {.proxy.} = let ssock = initServerSocket(buffered = false) buffer.ssock = ssock ps.write(char(0)) - buffer.source.request.url = newurl + buffer.url = newurl for it in buffer.tasks.mitems: it = 0 let socks = ssock.acceptSocketStream() |