summaryrefslogtreecommitdiffstats
path: root/client/client_test.go
diff options
context:
space:
mode:
authorsiddharth ravikumar <s@ricketyspace.net>2022-06-24 22:01:19 -0400
committersiddharth ravikumar <s@ricketyspace.net>2022-06-24 22:01:55 -0400
commit36f7c002d65398c3d94c8804c0616623def87f8d (patch)
tree13c1da9ca620d046154420d42a19398fd124a8e3 /client/client_test.go
parent0aa8c2243d7ca661f89be58121f10b91f9c34c28 (diff)
client: update `buildHeaders`
Add `Accept` header.
Diffstat (limited to 'client/client_test.go')
-rw-r--r--client/client_test.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/client/client_test.go b/client/client_test.go
index b0309c7..5aa7081 100644
--- a/client/client_test.go
+++ b/client/client_test.go
@@ -30,6 +30,13 @@ func TestGet(t *testing.T) {
r.Header.Get("Cache-Control"))
return
}
+
+ // Check accept header.
+ if r.Header.Get("Accept") != "application/geo+json" {
+ t.Errorf("header: accept: %v != application/geo+json",
+ r.Header.Get("Accept"))
+ return
+ }
fmt.Fprint(w, "OK")
}))
defer ts.Close()