From 41703e2bb7fe2adc32835b150d0ad0c7469dd689 Mon Sep 17 00:00:00 2001 From: Derek McGowan Date: Wed, 21 Jan 2015 09:44:24 -0800 Subject: [PATCH] Fix write after close on http response Signed-off-by: Derek McGowan (github: dmcgowan) --- docs/session_v2.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/session_v2.go b/docs/session_v2.go index 11b96bd6..fa02bd3e 100644 --- a/docs/session_v2.go +++ b/docs/session_v2.go @@ -226,7 +226,7 @@ func (r *Session) PutV2ImageBlob(ep *Endpoint, imageName, sumType, sumStr string method := "PUT" log.Debugf("[registry] Calling %q %s", method, location) - req, err = r.reqFactory.NewRequest(method, location, blobRdr) + req, err = r.reqFactory.NewRequest(method, location, ioutil.NopCloser(blobRdr)) if err != nil { return err }