Skip to content

Commit a9b2a38

Browse files
committed
robustsession: do not prefer() servers with IgnoreServerListUpdates
Otherwise, the prefer() call adds a server’s internal name to the list.
1 parent cefc8c8 commit a9b2a38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

robustsession/robustsession.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ func (s *RobustSession) sendRequest(ctx context.Context, method, path string, da
353353
}
354354
if resp.StatusCode == http.StatusOK {
355355
if cl := resp.Header.Get("Content-Location"); cl != "" {
356-
if location, err := url.Parse(cl); err == nil {
356+
if location, err := url.Parse(cl); err == nil && !s.IgnoreServerListUpdates {
357357
s.network.prefer(location.Host)
358358
}
359359
}

0 commit comments

Comments
 (0)