summaryrefslogtreecommitdiff
path: root/finger/response.go
diff options
context:
space:
mode:
Diffstat (limited to 'finger/response.go')
-rw-r--r--finger/response.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/finger/response.go b/finger/response.go
index 8612f45..db2dfb0 100644
--- a/finger/response.go
+++ b/finger/response.go
@@ -5,18 +5,18 @@ import (
"io"
"strings"
- sr "tildegit.org/tjp/sliderule"
+ "tildegit.org/tjp/sliderule/internal/types"
)
// Error produces a finger Response containing the error message and Status 1.
-func Error(msg string) *sr.Response {
+func Error(msg string) *types.Response {
if !strings.HasSuffix(msg, "\r\n") {
msg += "\r\n"
}
- return &sr.Response{Body: bytes.NewBufferString(msg), Status: 1}
+ return &types.Response{Body: bytes.NewBufferString(msg), Status: 1}
}
// Success produces a finger response with a Status of 0.
-func Success(body io.Reader) *sr.Response {
- return &sr.Response{Body: body}
+func Success(body io.Reader) *types.Response {
+ return &types.Response{Body: body}
}