summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--finger/request.go3
-rw-r--r--gopher/request.go3
2 files changed, 4 insertions, 2 deletions
diff --git a/finger/request.go b/finger/request.go
index b0ef102..5eae6b6 100644
--- a/finger/request.go
+++ b/finger/request.go
@@ -70,6 +70,7 @@ func ParseRequest(rdr io.Reader) (*types.Request, error) {
Scheme: "finger",
Host: hostname,
Path: "/" + username,
- OmitHost: true,
+ OmitHost: true, //nolint:typecheck
+ // (for some reason typecheck on drone-ci doesn't realize OmitHost is a field in url.URL)
}}, nil
}
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