From 9bf5b44f24ad03c76e9f7b632736795f5314902a Mon Sep 17 00:00:00 2001 From: Yinon Avraham Date: Mon, 21 Oct 2019 00:53:38 +0300 Subject: [PATCH] Fix typo in default unit for data size (#24) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7754a85..4123cf7 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Tiny Go webserver that prints os information and HTTP request to output ### Paths -- `/data?size=n[&unit=u]`: creates a response with a size `n`. The unit of measure, if specified, accepts the following values: `KB`, `MB`, `GB`, `TB` (optional, default: `KB`). +- `/data?size=n[&unit=u]`: creates a response with a size `n`. The unit of measure, if specified, accepts the following values: `KB`, `MB`, `GB`, `TB` (optional, default: bytes). - `/echo`: webSocket echo. - `/bench`: always return the same response (`1`). - `/[?wait=d]`: returns the whoami information (request and network information). The optional `wait` query parameter can be provided to tell the server to wait before sending the response. The duration is expected in Go's [`time.Duration`](https://golang.org/pkg/time/#ParseDuration) format (e.g. `/?wait=100ms` to wait 100 milliseconds).