aboutsummaryrefslogtreecommitdiff
path: root/client.go
diff options
context:
space:
mode:
authorAdnan Maolood <[email protected]>2020-11-27 22:26:22 -0500
committerAdnan Maolood <[email protected]>2020-11-27 22:27:52 -0500
commit16739d20d0c97162c2a19dc47a4fd4318aa12a7e (patch)
tree9794faa7c0afce6e53f97639766ae31c011b744f /client.go
parentexamples/server: Increase certificate duration (diff)
downloadgo-gemini-16739d20d0c97162c2a19dc47a4fd4318aa12a7e.tar.xz
go-gemini-16739d20d0c97162c2a19dc47a4fd4318aa12a7e.zip
Fix escaping of queries
Diffstat (limited to 'client.go')
-rw-r--r--client.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/client.go b/client.go
index c1b3f98..17e7668 100644
--- a/client.go
+++ b/client.go
@@ -155,7 +155,7 @@ func (c *Client) do(req *Request, via []*Request) (*Response, error) {
input, ok := c.GetInput(resp.Meta, resp.Status == StatusSensitiveInput)
if ok {
req.URL.ForceQuery = true
- req.URL.RawQuery = url.QueryEscape(input)
+ req.URL.RawQuery = QueryEscape(input)
return c.do(req, via)
}
}