cfspeedtest panics on a regex captures unwrap because the expected cfRequestDuration;dur=([\d.]+) is not present in the response headers.
thread 'main' (32088) panicked at src\speedtest.rs:218:10:
called `Option::unwrap()` on a `None` value
The Server-Timing header (now) contains the following.
Server-Timing header: cfL4;desc="?proto=TCP&rtt=5003&min_rtt=4257&rtt_var=2477&sent=6&recv=6&lost=0&retrans=0&sent_bytes=4509&recv_bytes=531&delivery_rate=571652&cwnd=54&unsent_bytes=0&cid=&ts=52&x=0"
I suppose CF updated the request and dropped this field from the response. The Server-Timing header does supply a rtt field but I am unsure whether this suffices as a direct replacement for the entire req_latency and if server latency is already subtracted from there.
cfspeedtest panics on a regex captures unwrap because the expected
cfRequestDuration;dur=([\d.]+)is not present in the response headers.The Server-Timing header (now) contains the following.
I suppose CF updated the request and dropped this field from the response. The Server-Timing header does supply a
rttfield but I am unsure whether this suffices as a direct replacement for the entirereq_latencyand if server latency is already subtracted from there.