Skip to content

Commit

Permalink
Merge pull request #1535 from weaveworks/1523-rewrite-inspect-failure
Browse files Browse the repository at this point in the history
[proxy] only attempt to rewrite successful inspects

Fixes #1523.
  • Loading branch information
rade committed Oct 15, 2015
2 parents 0ef548b + 36de840 commit 0d2ff55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proxy/inspect_container_interceptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 0d2ff55

Please sign in to comment.