distribution/docs
Aaron Lehmann 11133181fc Fix CloseNotifier handling and avoid "the ResponseWriter does not implement CloseNotifier" warnings in logs
A change in #763 to address review comments caused problems. Originally,
instrumentedResponseWriter implemented the CloseNotifier interface, and
would panic if it was wrapping something that did not implement that
interface. This was split into a separate instrumentedResponseWriterCN
type that implements CloseNotifier, so there's a fallback if
instrumentedResponseWriter ever needs to wrap something that does not
implement this interface.

instrumentedResponseWriter's Value method would end up upcasting either
type back to instrumentedResponseWriter, which does not implement the
interface. In effect, instrumentedResponseWriterCN was never visible to
the handler.

This fixes the problem by implementing a wrapper Value method for
instrumentedResponseWriterCN.

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2015-08-18 17:28:51 -07:00
..
api Change some incorrect error types in proxy stores from API errors to 2015-08-11 14:16:24 -07:00
auth auth.AccessController interface now uses distribution/context 2015-07-23 19:48:47 -07:00
client Move common error codes to errcode package 2015-08-11 11:50:58 -07:00
handlers Fix CloseNotifier handling and avoid "the ResponseWriter does not implement CloseNotifier" warnings in logs 2015-08-18 17:28:51 -07:00
listener [Server] Listen and serve on a unix socket 2015-05-11 16:00:14 +03:00
middleware Add pull through cache functionality to the Registry which can be configured 2015-08-04 16:09:55 -07:00
proxy Change some incorrect error types in proxy stores from API errors to 2015-08-11 14:16:24 -07:00
storage Remove pathMapper object 2015-08-17 18:51:05 -07:00
doc.go Integrate layer info cache with registry and storage 2015-04-02 20:15:16 -07:00