diff options
| author | Shulhan <ms@kilabit.info> | 2021-06-26 19:40:15 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2021-06-26 19:40:15 +0700 |
| commit | 11fb91f7b1dcbccb26a8d8daaf43df15ff9adf9c (patch) | |
| tree | 4bb37627eb1aa5651d90e01236effb668e17b70b | |
| parent | c124ae94676bec1188ea168685429c9299b4dcbe (diff) | |
| download | pakakeh.go-11fb91f7b1dcbccb26a8d8daaf43df15ff9adf9c.tar.xz | |
http: simplify bytes to string conversion on unit test
| -rw-r--r-- | lib/http/http_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/http/http_test.go b/lib/http/http_test.go index 5e4f19c7..9ec1e602 100644 --- a/lib/http/http_test.go +++ b/lib/http/http_test.go @@ -26,7 +26,7 @@ var ( s := fmt.Sprintf("%s\n", epr.HttpRequest.Form) s += fmt.Sprintf("%s\n", epr.HttpRequest.PostForm) s += fmt.Sprintf("%v\n", epr.HttpRequest.MultipartForm) - s += fmt.Sprintf("%s", epr.RequestBody) + s += string(epr.RequestBody) return []byte(s), nil } |
