diff options
Diffstat (limited to 'gopher/client.go')
-rw-r--r-- | gopher/client.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gopher/client.go b/gopher/client.go index 8f5ca81..fad9413 100644 --- a/gopher/client.go +++ b/gopher/client.go @@ -6,7 +6,7 @@ import ( "io" "net" - "tildegit.org/tjp/gus" + sr "tildegit.org/tjp/sliderule" ) // Client is used for sending gopher requests and producing the responses. @@ -17,7 +17,7 @@ import ( type Client struct{} // RoundTrip sends a single gopher request and returns its response. -func (c Client) RoundTrip(request *gus.Request) (*gus.Response, error) { +func (c Client) RoundTrip(request *sr.Request) (*sr.Response, error) { if request.Scheme != "gopher" && request.Scheme != "" { return nil, errors.New("non-gopher protocols not supported") } @@ -51,5 +51,5 @@ func (c Client) RoundTrip(request *gus.Request) (*gus.Response, error) { return nil, err } - return &gus.Response{Body: bytes.NewBuffer(response)}, nil + return &sr.Response{Body: bytes.NewBuffer(response)}, nil } |