about summary refs log tree commit diff stats
path: root/src/server
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-02-18 21:03:54 +0100
committerbptato <nincsnevem662@gmail.com>2024-02-18 21:05:34 +0100
commit01b083bada3ad8ceb7d89cc215536ff738bfe876 (patch)
tree4cf472c6c1677a0ea98cf9f0c42bd88f30df910e /src/server
parent74296e6a91a21fbb34ecd079631098443593b4e6 (diff)
downloadchawan-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.nim2
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()