From 551fc372a10c6ddc7869a8e47f14a34d5a340f1e Mon Sep 17 00:00:00 2001 From: Will Norris Date: Mon, 14 Dec 2015 11:15:03 -0800 Subject: [PATCH] print raw bytes to http response in tests this has actually always been failing to transform the image, but wasn't being caught by our tests because we are currently only checking the response code. --- imageproxy_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imageproxy_test.go b/imageproxy_test.go index 448ecfb..71cbe67 100644 --- a/imageproxy_test.go +++ b/imageproxy_test.go @@ -225,7 +225,7 @@ func (t testTransport) RoundTrip(req *http.Request) (*http.Response, error) { img := new(bytes.Buffer) png.Encode(img, m) - raw = fmt.Sprintf("HTTP/1.1 200 OK\nContent-Length: %d\n\n%v", len(img.Bytes()), img.Bytes()) + raw = fmt.Sprintf("HTTP/1.1 200 OK\nContent-Length: %d\n\n%s", len(img.Bytes()), img.Bytes()) default: raw = "HTTP/1.1 404 Not Found\n\n" }