[proxy] only attempt to rewrite successful inspects

This commit is contained in:
Paul Bellamy committed 2015-10-14 11:28:43 +01:00
1 parent 0ef548b9c9
commit 36de840c91
1 file changed
+1 -1
+1 -1
View File
@@ -13,7 +13,7 @@ func (i *inspectContainerInterceptor) InterceptRequest(r *http.Request) error {
}
func (i *inspectContainerInterceptor) InterceptResponse(r *http.Response) error {
if !i.proxy.RewriteInspect {
if !i.proxy.RewriteInspect || r.StatusCode != 200 {
return nil
}