mirror of
https://github.com/willnorris/imageproxy.git
synced 2024-12-16 21:56:43 -05:00
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.
This commit is contained in:
parent
27d53782b4
commit
551fc372a1
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue