summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--client/client.go1
-rw-r--r--client/client_test.go7
-rw-r--r--version/version.go2
3 files changed, 9 insertions, 1 deletions
diff --git a/client/client.go b/client/client.go
index a2868f2..eade564 100644
--- a/client/client.go
+++ b/client/client.go
@@ -27,5 +27,6 @@ func buildHeaders(req *http.Request) *http.Request {
req.Header.Set("User-Agent", "peach/"+version.Version+
" peach.ricketyspace.net")
req.Header.Set("Cache-Control", "max-age=0")
+ req.Header.Set("Accept", "application/geo+json")
return req
}
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()
diff --git a/version/version.go b/version/version.go
index 21d4fba..160b0d3 100644
--- a/version/version.go
+++ b/version/version.go
@@ -4,4 +4,4 @@
// Peach version.
package version
-const Version = "0.8.2"
+const Version = "0.8.3.dev"