Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
add support for toxiproxy-haskell
- Loading branch information
Showing
with
2 additions
and
1 deletion.
-
+1
−0
README.md
-
+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 |
|
|
|
|
|
|
@@ -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) |
|
|