summaryrefslogtreecommitdiff
path: root/client/client.go
diff options
context:
space:
mode:
authorBen Burwell <ben@benburwell.com>2019-09-20 16:46:10 -0400
committerBen Burwell <ben@benburwell.com>2019-09-20 16:46:10 -0400
commite1f8ea2a889494859a61a9259110e40c70002d55 (patch)
tree52a96d1e80840512cac11449b549ceada1f24ef1 /client/client.go
parente1eee80afa1ddf579aea52435c69813459ce3811 (diff)
Simplify examples
Diffstat (limited to 'client/client.go')
-rw-r--r--client/client.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/client/client.go b/client/client.go
index af7c2d8..b68b2be 100644
--- a/client/client.go
+++ b/client/client.go
@@ -16,9 +16,6 @@ type CaesarClient struct {
// Endpoint is the URL to which HTTP requests should be made
Endpoint string
- // Token is an authorization token to supply to the server
- Token string
-
c *http.Client
once sync.Once
}
@@ -33,7 +30,6 @@ func (c *CaesarClient) EncodeMessage(r io.Reader) (io.Reader, error) {
if err != nil {
return nil, err
}
- req.Header.Set("authorization", "token "+c.Token)
req.Header.Set("user-agent", "caesar-client/1.0")
resp, err := c.c.Do(req)
if err != nil {