Permalink
Browse files

add support for toxiproxy-haskell

  • Loading branch information...
jpittis committed Mar 4, 2018
1 parent fe6bf4f commit 8f0f101af2f1e0600d8e016fc9885c3adcc59a5f
Showing with 2 additions and 1 deletion.
  1. +1 −0 README.md
  2. +1 −1 api.go
@@ -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
2 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)

0 comments on commit 8f0f101

Please sign in to comment.