Skip to content

Commit

Permalink
fix: Resolve delay omission in the presence of nested proxy-groups
Browse files Browse the repository at this point in the history
  • Loading branch information
Larvan2 committed Jun 7, 2023
1 parent 767aa18 commit 0934535
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hub/route/proxies.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func getProxyDelay(w http.ResponseWriter, r *http.Request) {
ctx, cancel := context.WithTimeout(context.Background(), time.Millisecond*time.Duration(timeout))
defer cancel()

delay, err := proxy.URLTest(ctx, url, expectedStatus, C.DropHistory)
delay, err := proxy.URLTest(ctx, url, expectedStatus, C.ExtraHistory)
if ctx.Err() != nil {
render.Status(r, http.StatusGatewayTimeout)
render.JSON(w, r, ErrRequestTimeout)
Expand Down

0 comments on commit 0934535

Please sign in to comment.