From 8f0f101af2f1e0600d8e016fc9885c3adcc59a5f Mon Sep 17 00:00:00 2001 From: Jake Pittis Date: Sun, 4 Mar 2018 18:14:02 -0500 Subject: [PATCH] add support for toxiproxy-haskell --- README.md | 1 + api.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ed848581..f0306692 100644 --- a/README.md +++ b/README.md @@ -82,6 +82,7 @@ development and CI environments. * [toxiproxy-php-client](https://github.com/ihsw/toxiproxy-php-client) * [toxiproxy-node-client](https://github.com/ihsw/toxiproxy-node-client) * [toxiproxy-java](https://github.com/trekawek/toxiproxy-java) +* [toxiproxy-haskell](https://github.com/jpittis/toxiproxy-haskell) ## Example diff --git a/api.go b/api.go index 35be6df1..02edd9aa 100644 --- a/api.go +++ b/api.go @@ -382,7 +382,7 @@ func (server *ApiServer) ToxicDelete(response http.ResponseWriter, request *http } func (server *ApiServer) Version(response http.ResponseWriter, request *http.Request) { - response.Header().Set("Content-Type", "text/plain") + response.Header().Set("Content-Type", "text/plain;charset=utf-8") _, err := response.Write([]byte(Version)) if err != nil { logrus.Warn("Version: Failed to write response to client", err)