Fix URLs with legit query strings in them

This commit is contained in:
Drew DeVault 2020-11-08 12:34:07 -05:00
parent 6531cf3930
commit cf33ad12e5

View file

@ -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)
}))