diff options
Diffstat (limited to 'gopher/request.go')
-rw-r--r-- | gopher/request.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gopher/request.go b/gopher/request.go index 4aac218..eef8262 100644 --- a/gopher/request.go +++ b/gopher/request.go @@ -8,11 +8,11 @@ import ( "path" "strings" - sr "tildegit.org/tjp/sliderule" + "tildegit.org/tjp/sliderule/internal/types" ) // ParseRequest parses a gopher protocol request into a sliderule.Request object. -func ParseRequest(rdr io.Reader) (*sr.Request, error) { +func ParseRequest(rdr io.Reader) (*types.Request, error) { selector, search, err := readFullRequest(rdr) if err != nil { return nil, err @@ -22,7 +22,7 @@ func ParseRequest(rdr io.Reader) (*sr.Request, error) { selector = "/" + selector } - return &sr.Request{ + return &types.Request{ URL: &url.URL{ Scheme: "gopher", Path: path.Clean(selector), |