summaryrefslogtreecommitdiff
path: root/gopher
diff options
context:
space:
mode:
authortjpcc <tjp@ctrl-c.club>2023-08-12 10:48:08 -0600
committertjpcc <tjp@ctrl-c.club>2023-08-12 10:49:44 -0600
commit39ab058ea779763b83e05812cd222e2cbef90eab (patch)
treecf618e8718fb58c6a212ff29a39e8be3667d0576 /gopher
parent7d3cbefde656d5520067d56eeb44a8ba1f39d672 (diff)
Revert "text fixes"
This reverts commit 7efdcf9277c4a7be88179cb93d309d2f1e684fe6. except the error text fix, keep that.
Diffstat (limited to 'gopher')
-rw-r--r--gopher/request.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/gopher/request.go b/gopher/request.go
index eef8262..fdd7480 100644
--- a/gopher/request.go
+++ b/gopher/request.go
@@ -26,7 +26,8 @@ func ParseRequest(rdr io.Reader) (*types.Request, error) {
URL: &url.URL{
Scheme: "gopher",
Path: path.Clean(selector),
- OmitHost: true,
+ OmitHost: true, //nolint:typecheck
+ // (for some reason typecheck on drone-ci doesn't realize OmitHost is a field in url.URL)
RawQuery: url.QueryEscape(search),
},
}, nil