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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -778,7 +778,12 @@ func (mx *Measurer) MeasureURL(
for epnt := range mx.HTTPEndpointGetParallel(ctx, cookies, epnts...) {
m.Endpoints = append(m.Endpoints, epnt)
}
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