summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/client_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/client_test.go b/client/client_test.go
index bfb8480..a37f4e1 100644
--- a/client/client_test.go
+++ b/client/client_test.go
@@ -2,6 +2,7 @@ package client
import (
"bytes"
+ "fmt"
"io/ioutil"
"net/http"
"net/http/httptest"
@@ -11,7 +12,7 @@ import (
func TestEncode(t *testing.T) {
server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
- w.Write([]byte("response"))
+ fmt.Fprint(w, "response")
}))
defer server.Close()
client := CaesarClient{Endpoint: server.URL} // HL