summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--finger/request.go5
-rw-r--r--gopher/request.go3
2 files changed, 3 insertions, 5 deletions
diff --git a/finger/request.go b/finger/request.go
index bd2d35a..fad7fee 100644
--- a/finger/request.go
+++ b/finger/request.go
@@ -14,7 +14,7 @@ import (
var ForwardingDenied = errors.New("Finger forwarding service denied.")
// InvalidFingerQuery is sent when a client doesn't properly format the query.
-var InvalidFingerQuery = errors.New("Invalid finger query .")
+var InvalidFingerQuery = errors.New("Invalid finger query.")
// ParseRequest builds a sliderule.Request by reading a finger protocol request.
//
@@ -70,7 +70,6 @@ func ParseRequest(rdr io.Reader) (*sr.Request, error) {
Scheme: "finger",
Host: hostname,
Path: "/" + username,
- OmitHost: true, //nolint:typecheck
- // (for some reason typecheck on drone-ci doesn't realize OmitHost is a field in url.URL)
+ OmitHost: true,
}}, nil
}
diff --git a/gopher/request.go b/gopher/request.go
index 0757654..4aac218 100644
--- a/gopher/request.go
+++ b/gopher/request.go
@@ -26,8 +26,7 @@ func ParseRequest(rdr io.Reader) (*sr.Request, error) {
URL: &url.URL{
Scheme: "gopher",
Path: path.Clean(selector),
- OmitHost: true, //nolint:typecheck
- // (for some reason typecheck on drone-ci doesn't realize OmitHost is a field in url.URL)
+ OmitHost: true,
RawQuery: url.QueryEscape(search),
},
}, nil