aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <[email protected]>2020-11-08 12:34:07 -0500
committerDrew DeVault <[email protected]>2020-11-08 12:34:07 -0500
commitcf33ad12e5c483856a168584c7fb0f69b1c415df (patch)
tree1f4e9f6865a996f9434d32ad24a9a7d65358260b
parentImplement input and redirect responses (diff)
downloadcapybara-cf33ad12e5c483856a168584c7fb0f69b1c415df.tar.xz
capybara-cf33ad12e5c483856a168584c7fb0f69b1c415df.zip
Fix URLs with legit query strings in them
-rw-r--r--main.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.go b/main.go
index 1925f0b..5999ae3 100644
--- a/main.go
+++ b/main.go
@@ -545,6 +545,8 @@ func main() {
q := r.URL.Query()
if x, ok := q["q"]; ok {
req.URL.RawQuery = x[0]
+ } else {
+ req.URL.RawQuery = r.URL.RawQuery
}
proxyGemini(req, false, root, w, r)
}))