fix(measurex): quic follow-up only with https scheme (#538)

Closes https://github.com/ooni/probe/issues/1799
This commit is contained in:
Simone Basso
2021-10-05 13:02:56 +02:00
committed by GitHub
parent a6318d6de9
commit 1ffb2db0ca
+6 -1
View File
@@ -778,7 +778,12 @@ func (mx *Measurer) MeasureURL(
for epnt := range mx.HTTPEndpointGetParallel(ctx, cookies, epnts...) {
m.Endpoints = append(m.Endpoints, epnt)
}
mx.maybeQUICFollowUp(ctx, m, cookies, epnts...)
switch parsed.Scheme {
case "https":
mx.maybeQUICFollowUp(ctx, m, cookies, epnts...)
default:
// nothing to do
}
m.EpntsRuntime = time.Since(epntRuntime)
m.fillRedirects()
return m, nil